1915 """ |
1915 """ |
1916 Private slot to perform actions when the view is shown and the event |
1916 Private slot to perform actions when the view is shown and the event |
1917 loop is running. |
1917 loop is running. |
1918 """ |
1918 """ |
1919 if self.__restoreData: |
1919 if self.__restoreData: |
1920 self.loadFromSessionData(self.__restoreData) |
1920 sessionData, self.__restoreData = self.__restoreData, None |
1921 self.__restoreData = None |
1921 self.loadFromSessionData(sessionData) |
1922 |
1922 |
1923 def showEvent(self, evt): |
1923 def showEvent(self, evt): |
1924 """ |
1924 """ |
1925 Protected method to handle show events. |
1925 Protected method to handle show events. |
1926 |
1926 |
1932 |
1932 |
1933 def activateSession(self): |
1933 def activateSession(self): |
1934 """ |
1934 """ |
1935 Private slot to activate a restored session. |
1935 Private slot to activate a restored session. |
1936 """ |
1936 """ |
1937 if self.__restoreData: |
1937 if self.__restoreData and not self.__mw.isClosing(): |
1938 QTimer.singleShot(0, self.__showEventSlot) |
1938 QTimer.singleShot(0, self.__showEventSlot) |
1939 |
1939 |
1940 def getSessionData(self): |
1940 def getSessionData(self): |
1941 """ |
1941 """ |
1942 Public method to populate the session data. |
1942 Public method to populate the session data. |