--- 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)