Switch translator back only when it's been changed #4836
This commit is contained in:
parent
48d24d72e6
commit
60b56f9e58
|
@ -89,7 +89,10 @@ void SettingsDialog::accept()
|
|||
|
||||
void SettingsDialog::reject()
|
||||
{
|
||||
if (appConfig().language() != m_pComboLanguage->itemData(m_pComboLanguage->currentIndex()).toString()) {
|
||||
QSynergyApplication::getInstance()->switchTranslator(appConfig().language());
|
||||
}
|
||||
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue