Commit 5c692c1e authored by Philipp Hörist's avatar Philipp Hörist

[whiteboard] Remove not used Base objects

parent b1f042e5
......@@ -99,6 +99,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment