Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'whiteboard/plugin.py')
-rw-r--r--whiteboard/plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/whiteboard/plugin.py b/whiteboard/plugin.py
index e07ebd6..e28236f 100644
--- a/whiteboard/plugin.py
+++ b/whiteboard/plugin.py
@@ -101,6 +101,10 @@ class WhiteboardPlugin(GajimPlugin):
@log_calls('WhiteboardPlugin')
def connect_with_chat_control(self, control):
+ for base in self.controls:
+ if base.chat_control == control:
+ self.controls.remove(base)
+
if isinstance(control, chat_control.ChatControl):
base = Base(self, control)
self.controls.append(base)