diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-01-16 09:11:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-01-16 09:11:25 +0100 |
commit | cdea6dd8381b907aabea10f0bc2ee7ef59701625 (patch) | |
tree | 28587c0d83c6f5702a1f95e145473d8932187e6d /logic | |
parent | 9923ef90b98c75163cdacfdf043e3a0ca340aac5 (diff) |
logic: logger can't be NULL
Closes #1028
Diffstat (limited to 'logic')
-rw-r--r-- | logic/work.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/logic/work.cpp b/logic/work.cpp index 302414b8..7689f916 100644 --- a/logic/work.cpp +++ b/logic/work.cpp @@ -36,12 +36,8 @@ std::unique_ptr<TrackLogger> Work::make_logger(main_settings &s) if (s.tracklogging_enabled) { QString filename = browse_datalogging_file(s); - if (filename.isEmpty()) - { - // The user probably canceled the file dialog. In this case we don't want to do anything. - return {}; - } - else + + if (!filename.isEmpty()) { auto logger = std::make_unique<TrackLoggerCSV>(*s.tracklogging_filename); |