This commit is contained in:
Hannah von Reth 2015-10-05 16:18:55 +02:00
parent 9adfebd339
commit c9ff3f1f6f
3 changed files with 4 additions and 3 deletions

View File

@ -288,7 +288,8 @@ private:
friend class NotificationData; friend class NotificationData;
}; };
inline bool Notification::operator ==(const Notification &other){ inline bool Notification::operator ==(const Notification &other)
{
return id() == other.id(); return id() == other.id();
} }

View File

@ -189,7 +189,7 @@ void SnoreCore::requestCloseNotification(Notification n, Notification::CloseReas
{ {
Q_D(SnoreCore); Q_D(SnoreCore);
bool wasQued = d->m_notificationQue.removeOne(n); bool wasQued = d->m_notificationQue.removeOne(n);
if(wasQued){ if (wasQued) {
snoreDebug(SNORE_DEBUG) << n << " was qued."; snoreDebug(SNORE_DEBUG) << n << " was qued.";
} }
if (!wasQued && d->m_notificationBackend) { if (!wasQued && d->m_notificationBackend) {

View File

@ -95,7 +95,7 @@ void SnoreNotifier::slotNotify(Snore::Notification notification)
} }
m_queue.append(notification); m_queue.append(notification);
snoreDebug(SNORE_WARNING) << "queing" << m_queue.size(); snoreDebug(SNORE_WARNING) << "queing" << m_queue.size();
if(!m_timer->isActive()){ if (!m_timer->isActive()) {
m_timer->start(); m_timer->start();
} }
} }