Philipp Hörist pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gui_interface.py
    ... ... @@ -563,6 +563,9 @@ def disable_account(self, account: str) -> None:
    563 563
             build_accounts_menu()
    
    564 564
             app.app.update_app_actions_state()
    
    565 565
     
    
    566
    +        # Code in account-disabled handlers may use app.get_client()
    
    567
    +        app.ged.raise_event(AccountDisabled(account=account))
    
    568
    +
    
    566 569
             app.get_client(account).cleanup()
    
    567 570
             del app.connections[account]
    
    568 571
             del self.instances[account]
    
    ... ... @@ -570,8 +573,6 @@ def disable_account(self, account: str) -> None:
    570 573
             del app.automatic_rooms[account]
    
    571 574
             del app.to_be_removed[account]
    
    572 575
     
    
    573
    -        app.ged.raise_event(AccountDisabled(account=account))
    
    574
    -
    
    575 576
         def remove_account(self, account: str) -> None:
    
    576 577
             if app.settings.get_account_setting(account, 'active'):
    
    577 578
                 self.disable_account(account)