From cdea6dd8381b907aabea10f0bc2ee7ef59701625 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 16 Jan 2020 09:11:05 +0100 Subject: logic: logger can't be NULL Closes #1028 --- logic/work.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'logic/work.cpp') 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 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(*s.tracklogging_filename); -- cgit v1.2.3