Mercurial > libervia-web
diff src/browser/sat_browser/menu.py @ 529:9bfd71e2b35c
plugin OTR: disconnect the active OTR sessions on profile disconnection
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 05 Sep 2014 11:41:40 +0200 |
parents | 35ccb3ff8245 |
children | dd43132684b9 |
line wrap: on
line diff
--- a/src/browser/sat_browser/menu.py Fri Sep 05 10:47:17 2014 +0200 +++ b/src/browser/sat_browser/menu.py Fri Sep 05 11:41:40 2014 +0200 @@ -104,6 +104,11 @@ def onDisconnect(self): def confirm_cb(answer): if answer: + # FIXME: are we sure the triggers finished their jobs when the backend disconnect? + # FIXME: disconnection on timeout is not handled yet... + for plugin in self.plugins.values(): + if hasattr(plugin, 'profileConnected'): + plugin.profileDisconnected() log.info("disconnection") self.host.bridge.call('disconnect', None) _dialog = dialog.ConfirmDialog(confirm_cb, text="Do you really want to disconnect ?")