jerry's patch: Fixed: changing language will reset process mode and logging level in the setting dialog.

This commit is contained in:
Nick Bolton 2013-05-31 14:58:36 +00:00
parent b2b9ae5484
commit de9cffabac
1 changed files with 6 additions and 0 deletions

View File

@ -95,9 +95,15 @@ void SettingsDialog::changeEvent(QEvent* event)
{ {
case QEvent::LanguageChange: case QEvent::LanguageChange:
{ {
int logLevelIndex = m_pComboLogLevel->currentIndex();
int processModeIndex = m_pComboProcessMode->currentIndex();
m_pComboLanguage->blockSignals(true); m_pComboLanguage->blockSignals(true);
retranslateUi(this); retranslateUi(this);
m_pComboLanguage->blockSignals(false); m_pComboLanguage->blockSignals(false);
m_pComboLogLevel->setCurrentIndex(logLevelIndex);
m_pComboProcessMode->setCurrentIndex(processModeIndex);
break; break;
} }