Minor style adjustments in crashdialog.py.

This commit is contained in:
Florian Bruhin 2015-02-01 23:12:32 +01:00
parent dc6aaecc78
commit 2f01c7c3ae

View File

@ -387,7 +387,6 @@ class ExceptionCrashDialog(_CrashDialog):
("Command history", '\n'.join(self._cmdhist)), ("Command history", '\n'.join(self._cmdhist)),
("Objects", self._objects), ("Objects", self._objects),
] ]
if self._chk_log.isChecked():
try: try:
self._crash_info.append( self._crash_info.append(
("Debug log", log.ram_handler.dump_log())) ("Debug log", log.ram_handler.dump_log()))
@ -441,9 +440,7 @@ class FatalCrashDialog(_CrashDialog):
self._lbl.setText(text) self._lbl.setText(text)
def _gather_crash_info(self): def _gather_crash_info(self):
self._crash_info += [ self._crash_info.append(("Fault log", self._log))
("Fault log", self._log),
]
super()._gather_crash_info() super()._gather_crash_info()