diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-04-11 16:27:29 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2016-04-11 16:49:24 +0300 |
commit | c48b5c4f61bacb90662aa7e63c8c25fbfd67c542 (patch) | |
tree | 9b44cdfabcaf74cb893d42cc33e2d6e7c43001f7 /src/gui/activitywidget.h | |
parent | 976f4dfabef2836fa37a8e86dc6cd1f33df7864c (diff) |
ActivityWidget: use a QHash for _widgetsToRemove
The problem with QSet is that the QDateTime was part of
the hash, but that does not make sens as it should be unique
per widget and not per <date, widget>
Instead make it a QHash so there is only one entry per widget.
Diffstat (limited to 'src/gui/activitywidget.h')
-rw-r--r-- | src/gui/activitywidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/activitywidget.h b/src/gui/activitywidget.h index be1fc5cd9..f70557372 100644 --- a/src/gui/activitywidget.h +++ b/src/gui/activitywidget.h @@ -96,7 +96,7 @@ private: QSet<int> _guiLoggedNotifications; ActivityList _blacklistedNotifications; - QSet< QPair<QDateTime, NotificationWidget*> > _widgetsToRemove; + QHash<NotificationWidget*, QDateTime> _widgetsToRemove; QTimer _removeTimer; // number of currently running notification requests. If non zero, |