src/eric7/UI/UserInterface.py

branch
eric7
changeset 9966
27f2437e6eea
parent 9947
ba47e3f454d8
child 9971
773ad1f1ed22
diff -r a298db96ba65 -r 27f2437e6eea src/eric7/UI/UserInterface.py
--- a/src/eric7/UI/UserInterface.py	Mon Apr 03 11:36:16 2023 +0200
+++ b/src/eric7/UI/UserInterface.py	Mon Apr 03 12:11:56 2023 +0200
@@ -1445,7 +1445,10 @@
 
         self.leftSidebar.setCurrentIndex(0)
         if self.rightSidebar:
-            self.rightSidebar.setCurrentIndex(0)
+            if self.__helpViewerWidget is not None:
+                self.rightSidebar.setCurrentWidget(self.__helpViewerWidget)
+            else:
+                self.rightSidebar.setCurrentIndex(0)
         self.bottomSidebar.setCurrentIndex(0)
 
         # create the central widget
@@ -5798,7 +5801,9 @@
         @param switchFocus flag indicating to transfer the input focus
         @type bool
         """
-        if self.codeDocumentationViewer is not None:
+        if self.codeDocumentationViewer is not None and (
+            switchFocus or self.codeDocumentationViewer.isEnabled()
+        ):
             if self.__layoutType == "Toolboxes":
                 self.rToolboxDock.show()
                 self.rToolbox.setCurrentWidget(self.codeDocumentationViewer)

eric ide

mercurial