diff --git a/src/libsnore/notification/notification_p.cpp b/src/libsnore/notification/notification_p.cpp index 50982d9..22e0e9e 100644 --- a/src/libsnore/notification/notification_p.cpp +++ b/src/libsnore/notification/notification_p.cpp @@ -128,7 +128,7 @@ bool NotificationData::sourceAndTargetAreSimilar(const SnorePlugin *target) void NotificationData::stopTimeoutTimer() { if (m_timeoutTimer) { - QMetaObject::invokeMethod(m_timeoutTimer.data(), "deleteLater", Qt::QueuedConnection); + m_timeoutTimer->deleteLater(); } }