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

Commits:

2 changed files:

Changes:

  • gajim/common/helpers.py
    ... ... @@ -561,6 +561,8 @@ def play_sound_file(path_to_soundfile):
    561 561
                 log.error('Could not play sound: %s', error.message)
    
    562 562
     
    
    563 563
     def get_connection_status(account: str) -> str:
    
    564
    +    if not app.account_is_available(account):
    
    565
    +        return 'error'
    
    564 566
         con = app.connections[account]
    
    565 567
         if con.state.is_reconnect_scheduled:
    
    566 568
             return 'error'
    

  • gajim/gtk/search_view.py
    ... ... @@ -302,8 +302,9 @@ def __init__(self, account: str, jid: JID, timestamp: float) -> None:
    302 302
     class CounterRow(Gtk.ListBoxRow):
    
    303 303
         def __init__(self, count: int) -> None:
    
    304 304
             Gtk.ListBoxRow.__init__(self)
    
    305
    +        self.set_activatable(False)
    
    305 306
             self.type: str = 'counter'
    
    306
    -        self.jid = None
    
    307
    +        self.jid: str = ''  # Has to be there for header_func
    
    307 308
             self.time: float = 0.0
    
    308 309
             self.get_style_context().add_class('search-view-counter')
    
    309 310