From 14921d4174f1d891a2447198de18fa0a23e00efb 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 --- .../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 ) );