Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: f5b8a2f6 by wurstsalat at 2021-12-13T23:30:18+01:00 ActionSetting: Disconnect handler on destroy
- - - - -
1 changed file:
- gajim/gtk/settings.py
Changes:
===================================== gajim/gtk/settings.py ===================================== @@ -610,7 +610,12 @@ def __init__(self, *args, account): self.on_enable()
self.show_all() - self.action.connect('notify::enabled', self.on_enable) + self._handler_id = self.action.connect( + 'notify::enabled', self.on_enable) + self.connect('destroy', self._on_destroy) + + def _on_destroy(self, *args): + self.action.disconnect(self._handler_id)
def on_enable(self, *args): self.set_sensitive(self.action.get_enabled())
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/f5b8a2f6d1a5bc817506c144b937ae379...