Switch translator back only when it's been changed #4836

This commit is contained in:
Jerry (Xinyu Hou) 2016-04-28 07:25:00 -07:00
parent 48d24d72e6
commit 60b56f9e58
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ void SettingsDialog::accept()
void SettingsDialog::reject()
{
QSynergyApplication::getInstance()->switchTranslator(appConfig().language());
if (appConfig().language() != m_pComboLanguage->itemData(m_pComboLanguage->currentIndex()).toString()) {
QSynergyApplication::getInstance()->switchTranslator(appConfig().language());
}
QDialog::reject();
}