TranslatorWidget: fixed an issue updating the target language selector.

Mon, 09 Jul 2018 19:06:01 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 09 Jul 2018 19:06:01 +0200
changeset 6419
5d47e741245a
parent 6418
3d82bb330f65
child 6420
4dd44f42a24f

TranslatorWidget: fixed an issue updating the target language selector.

Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py file | annotate | diff | comparison | revisions
--- a/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Sun Jul 08 19:47:01 2018 +0200
+++ b/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Mon Jul 09 19:06:01 2018 +0200
@@ -286,8 +286,9 @@
         
         self.__updateLanguages()
         
-        self.origLanguageComboBox.setCurrentIndex(
-            self.origLanguageComboBox.findData(origLanguage))
+        origIndex = self.origLanguageComboBox.findData(origLanguage)
+        self.origLanguageComboBox.setCurrentIndex(origIndex)
+        self.on_origLanguageComboBox_currentIndexChanged(origIndex)
         self.transLanguageComboBox.setCurrentIndex(
             self.transLanguageComboBox.findData(transLanguage))
     

eric ide

mercurial