mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix saving of steps, add missing help button
This commit is contained in:
parent
0213f8662e
commit
2d76f2516e
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue