aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-08-23 23:07:06 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-08-23 23:07:06 (GMT)
commit34c1f14836f4d0f04b2175b70b4073384a522b16 (patch)
treeff19cf7c084c958193699201c86c2301c117c844
parentd3b1145ae114f4cd8792e23142ba4591c4cd977b (diff)
Fix removing entries from subscription
-rw-r--r--src/server/notificationsubscriber.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/notificationsubscriber.cpp b/src/server/notificationsubscriber.cpp
index 95247b6..8dbd706 100644
--- a/src/server/notificationsubscriber.cpp
+++ b/src/server/notificationsubscriber.cpp
@@ -177,7 +177,7 @@ void NotificationSubscriber::modifySubscription(const Protocol::ModifySubscripti
#define REMOVE(set, items) \
Q_FOREACH (const auto &entity, items) { \
- set.insert(entity); \
+ set.remove(entity); \
}
if (START_MONITORING(Types)) {
@@ -251,6 +251,11 @@ void NotificationSubscriber::modifySubscription(const Protocol::ModifySubscripti
changeNtf.setOperation(Protocol::SubscriptionChangeNotification::Modify);
mManager->slotNotify({ changeNtf });
}
+
+ #undef START_MONITORING
+ #undef STOP_MONITORING
+ #undef APPEND
+ #undef REMOVE
}
Protocol::ChangeNotification NotificationSubscriber::toChangeNotification() const