summaryrefslogtreecommitdiff
path: root/portato/gui/windows/preference.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-10 19:48:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-10 19:48:51 +0200
commit5163f46c83fb808831df07e7235849ac0de47f4e (patch)
tree680fa8253e6bcb6c69d02730d3760b3c76f5a3a6 /portato/gui/windows/preference.py
parent1aaa1b04303219e7e4624a98bc8c42ce6dbff2e5 (diff)
downloadportato-5163f46c83fb808831df07e7235849ac0de47f4e.tar.gz
portato-5163f46c83fb808831df07e7235849ac0de47f4e.tar.bz2
portato-5163f46c83fb808831df07e7235849ac0de47f4e.zip
Fixes bug on <portage-2.2 in preferences
Diffstat (limited to 'portato/gui/windows/preference.py')
-rw-r--r--portato/gui/windows/preference.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/gui/windows/preference.py b/portato/gui/windows/preference.py
index 78a281f..dba28b1 100644
--- a/portato/gui/windows/preference.py
+++ b/portato/gui/windows/preference.py
@@ -153,7 +153,8 @@ class PreferenceWindow (AbstractDialog):
else:
self.cfg.set(val,self.tree.get_widget(edit).get_text())
- self.cfg.set("updatesets", ", ".join(sorted(name for enabled, markup, descr, name in self.setList.get_model() if enabled)))
+ if system.has_set_support():
+ self.cfg.set("updatesets", ", ".join(sorted(name for enabled, markup, descr, name in self.setList.get_model() if enabled)))
font = self.consoleFontBtn.get_font_name()
self.cfg.set("consolefont", font, section = "GUI")