From 2b2331754df40dd8d730ee72897bbfa61d5544c5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 17 Feb 2016 07:10:01 +0100 Subject: [PATCH] Combine launch/crash time into one section. --- qutebrowser/misc/crashdialog.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/qutebrowser/misc/crashdialog.py b/qutebrowser/misc/crashdialog.py index 0e794b308..213c38187 100644 --- a/qutebrowser/misc/crashdialog.py +++ b/qutebrowser/misc/crashdialog.py @@ -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: