summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/WindowsNotifier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/WindowsNotifier.cpp b/Swift/QtUI/WindowsNotifier.cpp
index 49489a3..1789451 100644
--- a/Swift/QtUI/WindowsNotifier.cpp
+++ b/Swift/QtUI/WindowsNotifier.cpp
@@ -42,7 +42,9 @@ void WindowsNotifier::showMessage(Type type, const std::string& subject, const s
}
void WindowsNotifier::handleMessageClicked() {
- lastCallback();
+ if (lastCallback) {
+ lastCallback();
+ }
}
}