changeset 08245526b03f in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=08245526b03f
description: fix look in minimized_controls

diffstat:

 src/common/connection_handlers.py |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (21 lines):

diff -r 09ed3159d397 -r 08245526b03f src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Tue Oct 13 00:46:06 2009 +0300
+++ b/src/common/connection_handlers.py Tue Oct 13 07:53:05 2009 +0200
@@ -2279,14 +2279,9 @@
                                
                                # 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:
-                                       for control in 
gajim.interface.minimized_controls[self.name]:
-                                               # Using here this hack instead 
of isinstance() to avoid risk
-                                               # of cycle import when trying 
to import GroupchatControl from
-                                               # groupchat_control.py
-                                               if control.__class__.__name__ 
== 'GroupchatControl' and \
-                                                               
control.room_jid == room_jid:
-                                                       gc_control = control
+                               if gc_control is None and \
+                               room_jid in 
gajim.interface.minimized_controls[self.name]:
+                                       gc_control = control
 
                                if errcode == '502':
                                        # Internal Timeout:
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to