changeset 547:dd43132684b9

browser_side: fixes bug at profile disconnection
author souliane <souliane@mailoo.org>
date Wed, 10 Sep 2014 15:50:42 +0200
parents ff03fdb5215d
children 530f3fc3e3d7
files src/browser/sat_browser/menu.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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)