summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-25 14:34:15 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-25 14:34:15 +0200
commit0e91dae9223a0b82085e28c42483122681106100 (patch)
tree8d9e189898eb35abedbe126468248fe725617f31 /include
parentResize text input vertically to fit the contents (diff)
downloadnheko-0e91dae9223a0b82085e28c42483122681106100.tar.xz
Erase items using the key
Diffstat (limited to 'include')
-rw-r--r--include/CommunitiesList.h2
1 files changed, 1 insertions, 1 deletions
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> community, const QString &id);
-        void removeCommunity(const QString &id);
+        void removeCommunity(const QString &id) { communities_.erase(id); };
 
 signals:
         void communityChanged(const QString &id);