changeset b1d8046bbffa in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=b1d8046bbffa
description: prevent traceback when a whiteboard closes

diffstat:

 plugins/whiteboard/plugin.py |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r bdb21e413f5e -r b1d8046bbffa plugins/whiteboard/plugin.py
--- a/plugins/whiteboard/plugin.py      Thu Nov 04 11:03:52 2010 +0100
+++ b/plugins/whiteboard/plugin.py      Thu Nov 04 14:49:58 2010 +0300
@@ -343,8 +343,9 @@
         hbox = self.chat_control.xml.get_object('chat_control_hbox')
         if self.whiteboard.hbox in hbox.get_children():
             self.button.set_active(False)
-            hbox.remove(self.whiteboard.hbox)
-            self.whiteboard = None
+            if hasattr(self.whiteboard, 'hbox'):
+                hbox.remove(self.whiteboard.hbox)
+                self.whiteboard = None
 
     def disconnect_from_chat_control(self):
         actions_hbox = self.chat_control.xml.get_object('actions_hbox')
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to