[mousetrap] BugFix
- From: Flavio Percoco <flaper src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap] BugFix
- Date: Sat, 27 Mar 2010 01:02:28 +0000 (UTC)
commit 50eee14fadd38e77be1020b11b232feaf4a8c09f
Author: Flavio Percoco Premoli <flaper87 gmail com>
Date: Sat Mar 27 03:19:17 2010 +0100
BugFix
src/mousetrap/app/ui/settings_gui.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/mousetrap/app/ui/settings_gui.py b/src/mousetrap/app/ui/settings_gui.py
index f41944a..6f90491 100644
--- a/src/mousetrap/app/ui/settings_gui.py
+++ b/src/mousetrap/app/ui/settings_gui.py
@@ -237,6 +237,10 @@ class PreffGui( gtk.Window ):
for alg in pocv.get_idms_list():
alg_inf = pocv.get_idm_inf(alg)
+
+ if not alg_inf:
+ continue
+
state = False
if alg_inf["name"].lower() in self.cfg.get("main", "algorithm").lower():
state = True
@@ -302,6 +306,10 @@ class PreffGui( gtk.Window ):
for add in self.adds.get_addons_list():
add_inf = self.adds.get_addon_inf(add)
+
+ if not add_inf:
+ continue
+
state = False
if add_inf["name"].lower() in self.cfg.getList("main", "addon"):
state = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]