Well, this is embarassing. Fix segfault reports.

This commit is contained in:
Florian Bruhin 2016-03-27 22:50:55 +02:00
parent 4cd49d42cc
commit 952daf0479
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ Fixed
- Fixed very long filenames when downloading `data://`-URLs.
- Fixed ugly UI fonts on Windows when Liberation Mono is installed
- Fixed crash when unbinding key from a section which doesn't exist in the config
- Fixed report window after a segfault
v0.5.1
------

View File

@ -72,7 +72,7 @@ class CrashHandler(QObject):
def handle_segfault(self):
"""Handle a segfault from a previous run."""
data_dir = None
data_dir = standarddir.data()
if data_dir is None:
return
logname = os.path.join(data_dir, 'crash.log')