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 = []
|
ret = []
|
||||||
for i in items:
|
for i in items:
|
||||||
try:
|
try:
|
||||||
float(i)
|
i = float(i)
|
||||||
assert i > 0
|
assert i > 0
|
||||||
ret.append(i)
|
ret.append(i)
|
||||||
except:
|
except:
|
||||||
|
@ -129,6 +129,7 @@ class GroupConf(QDialog):
|
||||||
c = self.conf
|
c = self.conf
|
||||||
c['maxTaken'] = f.maxTaken.value()
|
c['maxTaken'] = f.maxTaken.value()
|
||||||
# update db
|
# update db
|
||||||
|
self.mw.deck.save(_("Group Options"))
|
||||||
self.mw.deck.db.execute(
|
self.mw.deck.db.execute(
|
||||||
"update gconf set conf = ? where id = ?",
|
"update gconf set conf = ? where id = ?",
|
||||||
simplejson.dumps(self.conf), self.gcid)
|
simplejson.dumps(self.conf), self.gcid)
|
||||||
|
|
|
@ -546,7 +546,7 @@
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
|
<set>QDialogButtonBox::Help|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue