From 1320df7e64a1d91d3da912575c823df532c7390c Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Wed, 26 Oct 2011 16:18:38 +0100
Subject: Don't crash when clicking a Windows popup without a registered
 action.

Resolves: #1021

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();
+	}
 }
 
 }
-- 
cgit v0.10.2-6-g49f6