common: Fix syncing of BufferViewManager
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 7 Nov 2018 20:01:39 +0000 (21:01 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 7 Nov 2018 20:57:55 +0000 (21:57 +0100)
Two syncable methods where accidentally demoted from being slots,
so adding/removing buffer views would not be synced anymore.

Fix this by making those methods slots again.

src/common/bufferviewmanager.h

index fcfb7d0..8f83622 100644 (file)
@@ -46,6 +46,9 @@ public slots:
     QVariantList initBufferViewIds() const;
     void initSetBufferViewIds(const QVariantList bufferViewIds);
 
+    void addBufferViewConfig(int bufferViewConfigId);
+    void deleteBufferViewConfig(int bufferViewConfigId);
+
     virtual inline void requestCreateBufferView(const QVariantMap &properties) { REQUEST(ARG(properties)) }
     virtual inline void requestCreateBufferViews(const QVariantList &properties) { REQUEST(ARG(properties)) }
     virtual inline void requestDeleteBufferView(int bufferViewId) { REQUEST(ARG(bufferViewId)) }
@@ -65,8 +68,6 @@ protected:
     virtual BufferViewConfig *bufferViewConfigFactory(int bufferViewConfigId);
 
     void addBufferViewConfig(BufferViewConfig *config);
-    void addBufferViewConfig(int bufferViewConfigId);
-    void deleteBufferViewConfig(int bufferViewConfigId);
 
 private:
     BufferViewConfigHash _bufferViewConfigs;