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



Author: sebp
Date: Thu May  8 13:19:43 2008
New Revision: 2156
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2156&view=rev

Log:
Fixed bug #522585: Crash when changing default browser

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	Thu May  8 13:19:43 2008
@@ -414,7 +414,10 @@
         for module in enabled_browser_modules:
             new_module_name = module.replace(old_browser.capitalize(), new_browser.capitalize())
             new_module = self._module_list.get_module_instance_from_name(new_module_name)
-            # If async is True then self.update_gconf() may be run before the modules were initialized
-            self.initialize_module(new_module, async=False)
+            
+            # If new_module is None the module has missing requirements
+            if new_module != None:
+                # If async is True then self.update_gconf() may be run before the modules were initialized
+                self.initialize_module(new_module, async=False)
         
         self.update_gconf()



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