diff src/browser/sat_browser/menu.py @ 547:dd43132684b9

browser_side: fixes bug at profile disconnection
author souliane <souliane@mailoo.org>
date Wed, 10 Sep 2014 15:50:42 +0200
parents 9bfd71e2b35c
children b07f0fe2763a
line wrap: on
line diff
--- a/src/browser/sat_browser/menu.py	Tue Sep 09 08:28:13 2014 +0200
+++ b/src/browser/sat_browser/menu.py	Wed Sep 10 15:50:42 2014 +0200
@@ -106,8 +106,8 @@
             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'):
+                for plugin in self.host.plugins.values():
+                    if hasattr(plugin, 'profileDisconnected'):
                         plugin.profileDisconnected()
                 log.info("disconnection")
                 self.host.bridge.call('disconnect', None)