Keep system language when changing settings

- when language was set to "system settings" and you changed any setting
  while BM was running, it switched the language to English.
This commit is contained in:
Peter Šurda 2016-08-14 12:01:00 +02:00
parent 233a30f114
commit de2fb17959
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -2360,8 +2360,7 @@ class MyForm(settingsmixin.SMainWindow):
lang = str(self.settingsDialogInstance.ui.languageComboBox.itemData(self.settingsDialogInstance.ui.languageComboBox.currentIndex()).toString())
shared.config.set('bitmessagesettings', 'userlocale', lang)
logger.debug("Setting locale to %s", lang)
change_translation(lang)
change_translation(l10n.getTranslationLanguage())
if int(shared.config.get('bitmessagesettings', 'port')) != int(self.settingsDialogInstance.ui.lineEditTCPPort.text()):
if not shared.safeConfigGetBoolean('bitmessagesettings', 'dontconnect'):