deskbar-applet r2155 - in branches/gnome-2-22: . deskbar/core
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2155 - in branches/gnome-2-22: . deskbar/core
- Date: Thu,  8 May 2008 14:15:17 +0100 (BST)
Author: sebp
Date: Thu May  8 13:15:17 2008
New Revision: 2155
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2155&view=rev
Log:
Fixed bug #522585: Crash when changing default browser
Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/deskbar/core/CoreImpl.py
Modified: branches/gnome-2-22/deskbar/core/CoreImpl.py
==============================================================================
--- branches/gnome-2-22/deskbar/core/CoreImpl.py	(original)
+++ branches/gnome-2-22/deskbar/core/CoreImpl.py	Thu May  8 13:15:17 2008
@@ -410,7 +410,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]