Fixed an issue causing the editor navigation selectors to malfunction, when the editor was parsed while a popup was open. eric7

Thu, 12 Jan 2023 10:57:50 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Jan 2023 10:57:50 +0100
branch
eric7
changeset 9691
12b8fe65c28c
parent 9690
2dc33116df50
child 9692
a0be29ab700a

Fixed an issue causing the editor navigation selectors to malfunction, when the editor was parsed while a popup was open.

src/eric7/QScintilla/EditorAssembly.py file | annotate | diff | comparison | revisions
--- a/src/eric7/QScintilla/EditorAssembly.py	Wed Jan 11 15:03:59 2023 +0100
+++ b/src/eric7/QScintilla/EditorAssembly.py	Thu Jan 12 10:57:50 2023 +0100
@@ -305,6 +305,8 @@
                 self.__selectedGlobal = self.__globalsCombo.currentText()
                 self.__selectedMember = self.__membersCombo.currentText()
 
+                self.__globalsCombo.hidePopup()
+                self.__membersCombo.hidePopup()
                 self.__globalsCombo.clear()
                 self.__membersCombo.clear()
                 self.__globalsBoundaries = {}
@@ -383,6 +385,8 @@
                     self.__membersCombo.setCurrentIndex(index)
                     self.__membersActivated(index, moveCursor=False)
         else:
+            self.__globalsCombo.hidePopup()
+            self.__membersCombo.hidePopup()
             self.__globalsCombo.clear()
             self.__membersCombo.clear()
             self.__globalsBoundaries = {}

eric ide

mercurial