mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
keep numbers as ints if they have no decimal portion
This commit is contained in:
parent
292f6403a1
commit
309f98fcbb
2 changed files with 3 additions and 1 deletions
|
@ -88,6 +88,8 @@ class GroupConf(QDialog):
|
||||||
try:
|
try:
|
||||||
i = float(i)
|
i = float(i)
|
||||||
assert i > 0
|
assert i > 0
|
||||||
|
if i == int(i):
|
||||||
|
i = int(i)
|
||||||
ret.append(i)
|
ret.append(i)
|
||||||
except:
|
except:
|
||||||
# invalid, don't update
|
# invalid, don't update
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
|
<set>QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue