prevent traceback when a whiteboard closes
This commit is contained in:
parent
96c02c67b4
commit
e7cfc9f2f7
|
@ -343,8 +343,9 @@ class Base(object):
|
||||||
hbox = self.chat_control.xml.get_object('chat_control_hbox')
|
hbox = self.chat_control.xml.get_object('chat_control_hbox')
|
||||||
if self.whiteboard.hbox in hbox.get_children():
|
if self.whiteboard.hbox in hbox.get_children():
|
||||||
self.button.set_active(False)
|
self.button.set_active(False)
|
||||||
hbox.remove(self.whiteboard.hbox)
|
if hasattr(self.whiteboard, 'hbox'):
|
||||||
self.whiteboard = None
|
hbox.remove(self.whiteboard.hbox)
|
||||||
|
self.whiteboard = None
|
||||||
|
|
||||||
def disconnect_from_chat_control(self):
|
def disconnect_from_chat_control(self):
|
||||||
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
|
actions_hbox = self.chat_control.xml.get_object('actions_hbox')
|
||||||
|
|
Loading…
Reference in New Issue