Plugins/UiExtensionPlugins/Translator/Translator.py

changeset 6434
872d10fa686a
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
--- a/Plugins/UiExtensionPlugins/Translator/Translator.py	Sun Jul 15 19:00:10 2018 +0200
+++ b/Plugins/UiExtensionPlugins/Translator/Translator.py	Sun Jul 15 19:21:28 2018 +0200
@@ -92,10 +92,11 @@
         """
         Private slot to handle the activation of the project browser.
         """
-        if self.__ui.layout == "Toolboxes":
+        uiLayoutType = self.__ui.getLayoutType()
+        if uiLayoutType == "Toolboxes":
             self.__ui.hToolboxDock.show()
-            self.__ui.hToolboxDock.setCurrentWidget(self.__widget)
-        elif self.__ui.layout == "Sidebars":
+            self.__ui.hToolbox.setCurrentWidget(self.__widget)
+        elif uiLayoutType == "Sidebars":
             self.__ui.bottomSidebar.show()
             self.__ui.bottomSidebar.setCurrentWidget(self.__widget)
         else:

eric ide

mercurial