Was getting a double-delete, now it won't crash
This commit is contained in:
parent
1c3a45fd95
commit
895a9206ff
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,6 @@ Notification::Notification(const NetworkPackage& np, QObject* parent)
|
|||
|
||||
Notification::~Notification()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Notification::dismiss()
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QDir>
|
||||
#include <QPointer>
|
||||
|
||||
#include "notification.h"
|
||||
|
||||
|
@ -65,7 +66,7 @@ private /*methods*/:
|
|||
private /*attributes*/:
|
||||
const Device* m_device;
|
||||
KdeConnectPlugin* m_plugin;
|
||||
QHash<QString, Notification*> m_notifications;
|
||||
QHash<QString, QPointer<Notification>> m_notifications;
|
||||
QHash<QString, QString> m_internalIdToPublicId;
|
||||
int m_lastId;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue