Sat, 06 Oct 2012 19:07:04 +0200
Changed the logic for another occurance of focusChanged.
E5Gui/E5SideBar.py | file | annotate | diff | comparison | revisions | |
UI/UserInterface.py | file | annotate | diff | comparison | revisions |
--- a/E5Gui/E5SideBar.py Sat Oct 06 18:49:58 2012 +0200 +++ b/E5Gui/E5SideBar.py Sat Oct 06 19:07:04 2012 +0200 @@ -594,3 +594,13 @@ """ if self.__autoHide and not self.__hasFocus and not self.isMinimized(): self.shrink() + + def shutdown(self): + """ + Public method to shut down the object. + + This method does some preparations so the object can be deleted properly. + It disconnects from the focusChanged signal in order to avoid trouble later + on. + """ + e5App().focusChanged[QWidget, QWidget].disconnect(self.__appFocusChanged)
--- a/UI/UserInterface.py Sat Oct 06 18:49:58 2012 +0200 +++ b/UI/UserInterface.py Sat Oct 06 19:07:04 2012 +0200 @@ -5215,6 +5215,10 @@ self.pluginManager.doShutdown() + if self.layout == "Sidebars": + self.leftSidebar.shutdown() + self.bottomSidebar.shutdown() + if self.SAServer is not None: self.SAServer.shutdown() self.SAServer = None