From 0e91dae9223a0b82085e28c42483122681106100 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 25 Jan 2018 14:34:15 +0200 Subject: Erase items using the key --- include/CommunitiesList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/CommunitiesList.h b/include/CommunitiesList.h index 8bb6aaad..d03d32a2 100644 --- a/include/CommunitiesList.h +++ b/include/CommunitiesList.h @@ -20,7 +20,7 @@ public: void clear() { communities_.clear(); } void addCommunity(QSharedPointer community, const QString &id); - void removeCommunity(const QString &id); + void removeCommunity(const QString &id) { communities_.erase(id); }; signals: void communityChanged(const QString &id); -- cgit 1.5.1