summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@compiz-fusion.org>2011-02-25 17:05:06 +0100
committerPatrick Niklaus <marex@compiz-fusion.org>2011-02-25 17:05:06 +0100
commita299c358475a2c90742af4209ffdc7af1121f06b (patch)
tree9989292aea31f1b2b328bb3e4d0e3ede9191ed77
parent9c3d44f2c81f02461b71b43ad3acd6a3446086d3 (diff)
downloadsimple-ccsm-a299c358475a2c90742af4209ffdc7af1121f06b.tar.gz
simple-ccsm-a299c358475a2c90742af4209ffdc7af1121f06b.tar.bz2
Don't crash when colorfilter is not installed
-rwxr-xr-xsimple-ccsm.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/simple-ccsm.in b/simple-ccsm.in
index da24fcb..e0708ab 100755
--- a/simple-ccsm.in
+++ b/simple-ccsm.in
@@ -538,7 +538,9 @@ class ProfilePage:
break
self.ZoomCheck.set_value(enabled)
- enabled = self.Context.Plugins['colorfilter'].Enabled
+ enabled = False
+ if 'colorfilter' in self.Context.Plugins:
+ enabled = self.Context.Plugins['colorfilter'].Enabled
self.ColorfilterCheck.set_value(enabled)
def Update(self):