deskbar-applet r1970 - in trunk: . deskbar/core
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r1970 - in trunk: . deskbar/core
- Date: Wed, 27 Feb 2008 16:57:35 +0000 (GMT)
Author: sebp
Date: Wed Feb 27 16:57:35 2008
New Revision: 1970
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1970&view=rev
Log:
Fixed bug #518941: 'bool' object has no attribute 'find'
Modified:
trunk/ChangeLog
trunk/deskbar/core/BrowserMatch.py
Modified: trunk/deskbar/core/BrowserMatch.py
==============================================================================
--- trunk/deskbar/core/BrowserMatch.py (original)
+++ trunk/deskbar/core/BrowserMatch.py Wed Feb 27 16:57:35 2008
@@ -10,18 +10,21 @@
def get_preferred_browser():
http_handler = GconfStore.get_instance().get_client().get_string("/desktop/gnome/url-handlers/http/command")
if http_handler == None:
- return False
+ return None
http_handler = http_handler.strip().lower()
if not GconfStore.get_instance().get_client().get_bool("/desktop/gnome/url-handlers/http/enabled"):
- return False
+ return None
return http_handler.split(" ")[0]
def is_preferred_browser(test):
# We will import only if the user's preferred browser is mozilla
http_handler = get_preferred_browser()
-
+
+ if http_handler == None:
+ return False
+
if http_handler.find(test) != -1:
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]