changeset 6ba8d19efca7 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=6ba8d19efca7
description: Improved the lookup of the minimized control

diffstat:

 src/common/connection_handlers.py |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (22 lines):

diff -r 88c7b85875cc -r 6ba8d19efca7 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Tue Oct 13 13:42:44 2009 +0200
+++ b/src/common/connection_handlers.py Tue Oct 13 17:38:42 2009 +0300
@@ -2277,12 +2277,12 @@
                                gc_control = 
gajim.interface.msg_win_mgr.get_gc_control(room_jid,
                                                self.name)
                                
-                               # gc_control might be in the other place if 
it's minimized. Note:
-                               # this solution might have an impact on the 
performance.
-                               if gc_control is None and \
-                               room_jid in 
gajim.interface.minimized_controls[self.name]:
-                                       gc_control = 
gajim.interface.minimized_controls[self.name][
-                                               room_jid]
+                               # If gc_control is missing - it may be 
minimized. Try to get it from
+                               # there. If it's not there - then it's missing 
anyway and will
+                               # remain set to None.
+                               if gc_control is None:
+                                       minimized = 
gajim.interface.minimized_controls[self.name]
+                                       gc_control = minimized.get(room_jid)
 
                                if errcode == '502':
                                        # Internal Timeout:
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to