From 1d87ccad2d5ed6c93523f5a65756aed639c233c5 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 30 Nov 2008 05:15:04 +0100 Subject: [PATCH] Make set of contained buffers accessible --- src/client/messagefilter.cpp | 2 +- src/client/messagefilter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/messagefilter.cpp b/src/client/messagefilter.cpp index e39b796f..f7a1d810 100644 --- a/src/client/messagefilter.cpp +++ b/src/client/messagefilter.cpp @@ -103,7 +103,7 @@ QString MessageFilter::idString() const { if(_validBuffers.isEmpty()) return "*"; - QList bufferIds = _validBuffers.toList();; + QList bufferIds = _validBuffers.toList(); qSort(bufferIds); QStringList bufferIdStrings; diff --git a/src/client/messagefilter.h b/src/client/messagefilter.h index c173a8c6..d2310309 100644 --- a/src/client/messagefilter.h +++ b/src/client/messagefilter.h @@ -43,6 +43,7 @@ public: inline bool isSingleBufferFilter() const { return _validBuffers.count() == 1; } BufferId singleBufferId() const { return *(_validBuffers.constBegin()); } inline bool containsBuffer(const BufferId &id) const { return _validBuffers.contains(id); } + inline QSet containedBuffers() const { return _validBuffers; } public slots: void messageTypeFilterChanged(); -- 2.20.1