WebBrowser/WebBrowserView.py

changeset 5793
4ff73b969ab1
parent 5785
7c7c5f9e4fad
child 5797
8bc870b7a8a6
equal deleted inserted replaced
5792:519a193a19d7 5793:4ff73b969ab1
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.

eric ide

mercurial