diff --git a/misc/dbusnotification.cpp b/misc/dbusnotification.cpp index 0838a54..dc34268 100644 --- a/misc/dbusnotification.cpp +++ b/misc/dbusnotification.cpp @@ -376,15 +376,15 @@ void DBusNotification::handleNotifyResult(QDBusPendingCallWatcher *watcher) QDBusPendingReply returnValue = *watcher; if (returnValue.isError()) { - deleteLater(); emit error(); - } else { - { - QMutexLocker lock(&pendingNotificationsMutex); - pendingNotifications[m_id = returnValue.argumentAt<0>()] = this; - } - emit shown(); + return; } + + { + QMutexLocker lock(&pendingNotificationsMutex); + pendingNotifications[m_id = returnValue.argumentAt<0>()] = this; + } + emit shown(); } /*!