Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2016-04-11 16:27:29 +0300
committerOlivier Goffart <ogoffart@woboq.com>2016-04-11 16:49:24 +0300
commitc48b5c4f61bacb90662aa7e63c8c25fbfd67c542 (patch)
tree9b44cdfabcaf74cb893d42cc33e2d6e7c43001f7 /src/gui/activitywidget.h
parent976f4dfabef2836fa37a8e86dc6cd1f33df7864c (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.h2
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,