summaryrefslogtreecommitdiff
path: root/app-misc/anki/files/anki-2.1.15-fix-prefs.patch
blob: 4f0bb2457dacebe76c73004ab2b26e495c10030d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://bugs.gentoo.org/869917#c3
https://github.com/ankitects/anki/commit/d2ae874d9e1615d09afc912275cc3b27776a1392

--- a/aqt/preferences.py
+++ b/aqt/preferences.py
@@ -77,8 +77,8 @@ class Preferences(QDialog):
             f.hwAccel.setVisible(False)
         else:
             f.hwAccel.setChecked(self.mw.pm.glMode() != "software")
-        f.lrnCutoff.setValue(qc['collapseTime']/60.0)
-        f.timeLimit.setValue(qc['timeLim']/60.0)
+        f.lrnCutoff.setValue(int(qc['collapseTime']/60.0))
+        f.timeLimit.setValue(int(qc['timeLim']/60.0))
         f.showEstimates.setChecked(qc['estTimes'])
         f.showProgress.setChecked(qc['dueCounts'])
         f.nightMode.setChecked(qc.get("nightMode", False))