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:
|
||||
i = float(i)
|
||||
assert i > 0
|
||||
if i == int(i):
|
||||
i = int(i)
|
||||
ret.append(i)
|
||||
except:
|
||||
# invalid, don't update
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
|
||||
<set>QDialogButtonBox::Help|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue