diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 14:53:19 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-08-17 15:37:36 +0300 |
commit | 71dcc498bc2395de0f2b4c8d734917bdba698feb (patch) | |
tree | 800aa92c0e6b6cc7b58e29936b53cffe1e065cea | |
parent | 11581f2a2d2d41157d29cbe6caebb8bec3e73d5d (diff) |
[whiteboard] Remove not used Base objects
-rw-r--r-- | whiteboard/plugin.py | 4 |
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) |