summaryrefslogtreecommitdiff
path: root/src/dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dialogs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dialogs.py b/src/dialogs.py
index 0419f4f..54f5de8 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -82,10 +82,11 @@ class KPAnimationPresetChooser(QtGui.QDialog):
self.chooser = QtGui.QListWidget()
settings = KP.app.settings
+ import mapfile
if settings.contains('AnimationPresets'):
- self.presetList = settings.value('AnimationPresets').toPyObject()
- self.presets = settings.value('AnimationPresetData').toPyObject()
+ self.presetList = mapfile.load(str(settings.value('AnimationPresets').toPyObject()))
+ self.presets = mapfile.load(str(settings.value('AnimationPresetData').toPyObject()))
else:
self.presetList = ["Circle", "Wiggle", "Drifting Cloud"]
@@ -100,9 +101,8 @@ class KPAnimationPresetChooser(QtGui.QDialog):
["Loop", "Sinusoidial", 200.0, "Y Position", 10.0, -10.0],
["Reversible Loop", "Linear", 500.0, "Opacity", 80.0, 40.0]] ]
-
- settings.setValue('AnimationPresets', self.presetList)
- settings.setValue('AnimationPresetData', self.presets)
+ settings.setValue('AnimationPresets', mapfile.dump(self.presetList))
+ settings.setValue('AnimationPresetData', mapfile.dump(self.presets))
self.chooser.addItems(self.presetList)