diff options
-rw-r--r-- | gui/main-window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 95f1cf46..f4e08211 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -704,7 +704,8 @@ void main_window::show_mapping_window() void main_window::exit(int status) { QApplication::setQuitOnLastWindowClosed(true); - tray->hide(); + if (tray) + tray->hide(); tray = nullptr; close(); QApplication::exit(status); |