From 895a9206ffafd4b9725f567fd069fd655f200139 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 16 Jan 2018 20:31:05 +0100 Subject: [PATCH] Was getting a double-delete, now it won't crash --- plugins/notifications/notification.cpp | 1 - plugins/notifications/notificationsdbusinterface.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/notifications/notification.cpp b/plugins/notifications/notification.cpp index 1662af508..ba75981ff 100644 --- a/plugins/notifications/notification.cpp +++ b/plugins/notifications/notification.cpp @@ -55,7 +55,6 @@ Notification::Notification(const NetworkPackage& np, QObject* parent) Notification::~Notification() { - } void Notification::dismiss() diff --git a/plugins/notifications/notificationsdbusinterface.h b/plugins/notifications/notificationsdbusinterface.h index a42db902d..a6f746292 100644 --- a/plugins/notifications/notificationsdbusinterface.h +++ b/plugins/notifications/notificationsdbusinterface.h @@ -26,6 +26,7 @@ #include #include #include +#include #include "notification.h" @@ -65,7 +66,7 @@ private /*methods*/: private /*attributes*/: const Device* m_device; KdeConnectPlugin* m_plugin; - QHash m_notifications; + QHash> m_notifications; QHash m_internalIdToPublicId; int m_lastId; };