mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Use deleteLater() instead of delete
This commit is contained in:
parent
1479743e70
commit
cf4f50dac8
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,7 @@ NotificationsManager::postNotification(const QString &roomid,
|
|||
else
|
||||
notificationIds[watcher->reply().arguments().first().toUInt()] =
|
||||
roomEventId{roomid, eventid};
|
||||
delete watcher;
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,7 @@ NotificationsManager::closeNotification(uint id)
|
|||
if (watcher->reply().type() == QDBusMessage::ErrorMessage) {
|
||||
qDebug() << "D-Bus Error:" << watcher->reply().errorMessage();
|
||||
};
|
||||
watcher->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue