7943 and Preferences.getUI("OpenCrashSessionOnStartup") |
7943 and Preferences.getUI("OpenCrashSessionOnStartup") |
7944 ): |
7944 ): |
7945 fn = self.__checkCrashSessionExists() |
7945 fn = self.__checkCrashSessionExists() |
7946 if fn: |
7946 if fn: |
7947 res = self.__readSession(filename=fn) |
7947 res = self.__readSession(filename=fn) |
|
7948 if res and Preferences.getUI("DeleteLoadedCrashSession"): |
|
7949 os.remove(fn) |
7948 |
7950 |
7949 return res |
7951 return res |
7950 |
7952 |
7951 @pyqtSlot() |
7953 @pyqtSlot() |
7952 def __loadCrashSession(self): |
7954 def __loadCrashSession(self): |