Combine launch/crash time into one section.

This commit is contained in:
Florian Bruhin 2016-02-17 07:10:01 +01:00
parent 36019c0cab
commit 2b2331754d

View File

@ -237,14 +237,11 @@ class _CrashDialog(QDialog):
try:
application = QApplication.instance()
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:
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:
self._crash_info.append(("Version info", version.version()))
except Exception: