TranslatorWidget: added code to cope with a situation where the translation engine is None.

Sun, 14 Oct 2018 18:24:49 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 14 Oct 2018 18:24:49 +0200
changeset 6546
30829a28e969
parent 6545
f669c4c0d39b
child 6547
77c817301ca1

TranslatorWidget: added code to cope with a situation where the translation engine is None.

Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py file | annotate | diff | comparison | revisions
--- a/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Sat Oct 13 14:19:18 2018 +0200
+++ b/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py	Sun Oct 14 18:24:49 2018 +0200
@@ -88,6 +88,8 @@
         """
         Private slot to update the language combo boxes.
         """
+        self.__ensureTranslationEngineReady()
+        
         supportedCodes = self.__translationEngine.supportedLanguages()
         enabledCodes = self.__plugin.getPreferences("EnabledLanguages")
         

eric ide

mercurial