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:
authorPhilipp Hörist <philipp@hoerist.com>2019-08-17 14:53:19 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-08-17 15:37:36 +0300
commit71dcc498bc2395de0f2b4c8d734917bdba698feb (patch)
tree800aa92c0e6b6cc7b58e29936b53cffe1e065cea
parent11581f2a2d2d41157d29cbe6caebb8bec3e73d5d (diff)
[whiteboard] Remove not used Base objects
-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)