From 9f11987a3bcd1b3dd541e6e727723a77b600cd9e Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 6 Dec 2015 19:43:27 +0100 Subject: [PATCH] Changed: Update MaxTrack at launch --HG-- branch : develop --- .../client_config_qt/sound_settings_widget.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/code/ryzom/tools/client/client_config_qt/sound_settings_widget.cpp b/code/ryzom/tools/client/client_config_qt/sound_settings_widget.cpp index be637f8d8..b820a696f 100644 --- a/code/ryzom/tools/client/client_config_qt/sound_settings_widget.cpp +++ b/code/ryzom/tools/client/client_config_qt/sound_settings_widget.cpp @@ -62,6 +62,8 @@ void CSoundSettingsWidget::load() tracks = 32; tracksSlider->setValue( tracks / 4 ); + updateTracksLabel(); + if( s.config.getString( "DriverSound" ).compare( "FMod" ) == 0 ) fmodCheckBox->setChecked( true ); } @@ -85,16 +87,6 @@ void CSoundSettingsWidget::save() s.config.setString( "DriverSound", std::string( "FMod" ) ); } -void CSoundSettingsWidget::changeEvent( QEvent *event ) -{ - if( event->type() == QEvent::LanguageChange ) - { - retranslateUi( this ); - updateTracksLabel(); - } - QWidget::changeEvent( event ); -} - void CSoundSettingsWidget::updateTracksLabel() { tracksLabel->setText( tr( "%1 tracks" ).arg( tracksSlider->value() * 4 ) );