E5Gui/E5SideBar.py

changeset 2114
c07f0cb40b18
parent 2095
5bf2d8a73173
child 2302
f29e9405c851
--- 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)

eric ide

mercurial