Combine launch/crash time into one section.
This commit is contained in:
parent
36019c0cab
commit
2b2331754d
@ -237,14 +237,11 @@ class _CrashDialog(QDialog):
|
|||||||
try:
|
try:
|
||||||
application = QApplication.instance()
|
application = QApplication.instance()
|
||||||
launch_time = application.launch_time.ctime()
|
launch_time = application.launch_time.ctime()
|
||||||
self._crash_info.append(('Launch time', launch_time))
|
crash_time = datetime.datetime.now().ctime()
|
||||||
|
text = 'Launch: {}\nCrash: {}'.format(launch_time, crash_time)
|
||||||
|
self._crash_info.append(('Timestamps', text))
|
||||||
except Exception:
|
except Exception:
|
||||||
self._crash_info.append(("Launch time", traceback.format_exc()))
|
self._crash_info.append(("Launch time", traceback.format_exc()))
|
||||||
try:
|
|
||||||
self._crash_info.append(("Crash time",
|
|
||||||
datetime.datetime.now().ctime()))
|
|
||||||
except Exception:
|
|
||||||
self._crash_info.append(("Crash time", traceback.format_exc()))
|
|
||||||
try:
|
try:
|
||||||
self._crash_info.append(("Version info", version.version()))
|
self._crash_info.append(("Version info", version.version()))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
Reference in New Issue
Block a user