jerry's patch: Fixed: changing language will reset process mode and logging level in the setting dialog.
This commit is contained in:
parent
b2b9ae5484
commit
de9cffabac
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue