From 43aac4cfc6e2ac13970592989b8d492d24eeaad0 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Wed, 24 Jul 2013 15:23:36 +0200 Subject: [PATCH] fixed crash --- .../freedesktop/freedesktopnotificationfrontend.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp b/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp index da74a12..013d270 100644 --- a/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp +++ b/src/plugins/frontends/freedesktop/freedesktopnotificationfrontend.cpp @@ -55,7 +55,10 @@ bool FreedesktopFrontend::init(SnoreCore *snore){ } void FreedesktopFrontend::actionInvoked(Notification notification) { - emit ActionInvoked(notification.id(),QString::number(notification.actionInvoked()->id)); + if(notification.actionInvoked()) + { + emit ActionInvoked(notification.id(),QString::number(notification.actionInvoked()->id)); + } } void FreedesktopFrontend::notificationClosed(Notification notification) {