fix saving of steps, add missing help button

This commit is contained in:
Damien Elmes 2011-03-29 16:42:12 +09:00
parent 0213f8662e
commit 2d76f2516e
2 changed files with 3 additions and 2 deletions

View file

@ -87,7 +87,7 @@ class GroupConf(QDialog):
ret = []
for i in items:
try:
float(i)
i = float(i)
assert i > 0
ret.append(i)
except:
@ -129,6 +129,7 @@ class GroupConf(QDialog):
c = self.conf
c['maxTaken'] = f.maxTaken.value()
# update db
self.mw.deck.save(_("Group Options"))
self.mw.deck.db.execute(
"update gconf set conf = ? where id = ?",
simplejson.dumps(self.conf), self.gcid)

View file

@ -546,7 +546,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
<set>QDialogButtonBox::Help|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
</property>
</widget>
</item>