summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author= <=>2007-10-08 17:56:14 +0200
committer= <=>2007-10-08 17:56:14 +0200
commita7fa7d4a41fc914aa7a72552716ac6d32408f2aa (patch)
tree08ce6d0643d4a1200c3dcdcec9130c35b5289e2e
parentc8af126df6ef84d53922618dc3f6ca4982c4a7d0 (diff)
downloadccsm-0.6.0.tar.gz
ccsm-0.6.0.tar.bz2
Fixed changing backends0.6.0
-rw-r--r--ccm/Pages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccm/Pages.py b/ccm/Pages.py
index b3253ec..de45d53 100644
--- a/ccm/Pages.py
+++ b/ccm/Pages.py
@@ -927,7 +927,7 @@ class ProfileBackendPage:
def ProfileChanged(self, widget):
name = widget.get_active_text()
- if name == _("Default"):
+ if not name or not self.Context.Profiles.has_key(name) or name == _("Default"):
self.Context.ResetProfile()
else:
self.Context.CurrentProfile = self.Context.Profiles[name]