diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-10-26 15:18:38 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-10-26 15:36:58 (GMT) |
commit | 1320df7e64a1d91d3da912575c823df532c7390c (patch) | |
tree | b99dbf71b51fcb0bb7e4ddde0164991391825fcb /Swift/QtUI | |
parent | 22501a3af25840b90898c3b4c075581947646476 (diff) | |
download | swift-contrib-1320df7e64a1d91d3da912575c823df532c7390c.zip swift-contrib-1320df7e64a1d91d3da912575c823df532c7390c.tar.bz2 |
Don't crash when clicking a Windows popup without a registered action.
Resolves: #1021
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/WindowsNotifier.cpp | 4 |
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(); + } } } |