summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-10-26 15:18:38 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-10-26 15:36:58 (GMT)
commit1320df7e64a1d91d3da912575c823df532c7390c (patch)
treeb99dbf71b51fcb0bb7e4ddde0164991391825fcb /Swift
parent22501a3af25840b90898c3b4c075581947646476 (diff)
downloadswift-1320df7e64a1d91d3da912575c823df532c7390c.zip
swift-1320df7e64a1d91d3da912575c823df532c7390c.tar.bz2
Don't crash when clicking a Windows popup without a registered action.
Resolves: #1021
Diffstat (limited to 'Swift')
-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();
+ }
}
}