Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gui_interface.py
    ... ... @@ -1185,16 +1185,16 @@ def add_event(self, account, jid, event):
    1185 1185
             self.roster.select_contact(bb_jid, bb_account)
    
    1186 1186
     
    
    1187 1187
         def handle_event(self, account, fjid, type_):
    
    1188
    +        if type_ in ('connection-lost', 'connection-failed'):
    
    1189
    +            app.interface.roster.window.present()
    
    1190
    +            return
    
    1191
    +
    
    1188 1192
             w = None
    
    1189 1193
             ctrl = None
    
    1190 1194
     
    
    1191 1195
             resource = app.get_resource_from_jid(fjid)
    
    1192 1196
             jid = app.get_jid_without_resource(fjid)
    
    1193 1197
     
    
    1194
    -        if type_ == 'connection-lost':
    
    1195
    -            app.interface.roster.window.present()
    
    1196
    -            return
    
    1197
    -
    
    1198 1198
             if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'):
    
    1199 1199
                 w = self.msg_win_mgr.get_window(jid, account)
    
    1200 1200
                 if jid in self.minimized_controls[account]: