changeset 8b8b18582724 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=8b8b18582724
description: prevent a traceback which happen with obscure reasons. Fixes #5366

diffstat:

 src/message_window.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 9eb8ab239bde -r 8b8b18582724 src/message_window.py
--- a/src/message_window.py     Wed Oct 28 15:43:05 2009 +0100
+++ b/src/message_window.py     Wed Oct 28 20:03:45 2009 +0100
@@ -764,6 +764,9 @@
                        old_ctrl.set_control_active(False)
 
                new_ctrl = 
self._widget_to_control(notebook.get_nth_page(page_num))
+               if not new_ctrl:
+                       # This event is sometimes exposed without any reason. 
see #5366
+                       return
                new_ctrl.set_control_active(True)
                self.show_title(control = new_ctrl)
 
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to