fixed crash
This commit is contained in:
parent
b9f72387d5
commit
19a89f9e47
|
@ -53,8 +53,11 @@ bool SnarlNetworkFrontend::init(SnoreCore *snore){
|
|||
}
|
||||
|
||||
|
||||
void SnarlNetworkFrontend::actionInvoked(Notification notification){
|
||||
void SnarlNetworkFrontend::actionInvoked(Notification notification)
|
||||
{
|
||||
//TODO:fix callback
|
||||
if(notifications.contains(notification.id()))
|
||||
{
|
||||
SnarlNotification sn=notifications.value(notification.id());
|
||||
if(notification.actionInvoked().id() == 1 )
|
||||
{
|
||||
|
@ -64,6 +67,7 @@ void SnarlNetworkFrontend::actionInvoked(Notification notification){
|
|||
{
|
||||
callback(sn,"SNP/1.1/302/Notification cancelled/");
|
||||
}
|
||||
}
|
||||
}
|
||||
void SnarlNetworkFrontend::notificationClosed(Notification notification)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue