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

Commits:

4 changed files:

Changes:

  • gajim/gtk/account_page.py
    ... ... @@ -82,6 +82,10 @@ def __init__(self, account: str) -> None:
    82 82
     
    
    83 83
             self.update()
    
    84 84
             self.show_all()
    
    85
    +        self.connect('destroy', self._on_destroy)
    
    86
    +
    
    87
    +    def _on_destroy(self, *args):
    
    88
    +        app.check_finalize(self)
    
    85 89
     
    
    86 90
         def _on_edit_profile(self, _button):
    
    87 91
             open_window('ProfileWindow', account=self._account)
    

  • gajim/gtk/add_contact.py
    ... ... @@ -76,6 +76,10 @@ def __init__(self,
    76 76
             self.connect('button-clicked', self._on_button_clicked)
    
    77 77
     
    
    78 78
             self.show_all()
    
    79
    +        self.connect('destroy', self._on_destroy)
    
    80
    +
    
    81
    +    def _on_destroy(self, *args):
    
    82
    +        app.check_finalize(self)
    
    79 83
     
    
    80 84
         def _on_button_clicked(self, _assistant, button_name):
    
    81 85
             page = self.get_current_page()
    

  • gajim/gtk/profile.py
    ... ... @@ -117,6 +117,11 @@ def __init__(self, account, *args):
    117 117
             self._ui.connect_signals(self)
    
    118 118
             self.connect('key-press-event', self._on_key_press_event)
    
    119 119
     
    
    120
    +        self.connect('destroy', self._on_destroy)
    
    121
    +
    
    122
    +    def _on_destroy(self, *args):
    
    123
    +        app.check_finalize(self)
    
    124
    +
    
    120 125
         def _on_access_model_received(self, task):
    
    121 126
             namespace = task.get_user_data()
    
    122 127
     
    

  • gajim/gtk/roster.py
    ... ... @@ -167,6 +167,7 @@ def _remove_actions(self):
    167 167
                 'block-contact',
    
    168 168
                 'remove-contact',
    
    169 169
                 'show-offline',
    
    170
    +            'sort-by-show',
    
    170 171
             ]
    
    171 172
             for action in actions:
    
    172 173
                 app.window.remove_action(f'{action}-{self._account}')