stop timeout timer if notification is closed

This commit is contained in:
Patrick von Reth 2015-07-15 15:19:17 +02:00
parent 61f0908a36
commit f05300178d

View File

@ -79,6 +79,10 @@ void NotificationData::setActionInvoked(const Snore::Action &action)
void NotificationData::setCloseReason(Snore::Notification::CloseReasons r)
{
m_closeReason = r;
if (m_timeoutTimer) {
m_timeoutTimer->deleteLater();
m_timeoutTimer.reset();
}
}
QString NotificationData::resolveMarkup(const QString &string, Utils::MARKUP_FLAGS flags)