deskbar-applet r1971 - in trunk: . deskbar/core



Author: sebp
Date: Wed Feb 27 17:16:12 2008
New Revision: 1971
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1971&view=rev

Log:
When the default browser changes only stop those modules that have been enabled before. (fixes bug #513402)

Modified:
   trunk/ChangeLog
   trunk/deskbar/core/CoreImpl.py

Modified: trunk/deskbar/core/CoreImpl.py
==============================================================================
--- trunk/deskbar/core/CoreImpl.py	(original)
+++ trunk/deskbar/core/CoreImpl.py	Wed Feb 27 17:16:12 2008
@@ -386,9 +386,11 @@
         for module in self._module_list:
             # Check if the module is related to the old browser.
             if module.__class__.__module__ == "epiphany" or module.__class__.__module__ == "mozilla":
-                if module.is_enabled() and new_browser != "other":
-                    enabled_browser_modules.append(module.__class__.__name__)
-                self.stop_module(module, async=False)
+                if module.is_enabled(): 
+                    self.stop_module(module, async=False)
+                    if new_browser != "other":
+                        enabled_browser_modules.append(module.__class__.__name__)
+                    
                 self._module_list.remove_module(module)
                 self._module_loader.emit("module-not-initialized", module)
         



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]