mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Merge pull request #31 from frostschutz/timerbug
repeating timers would randomly start firing every 100ms indefinitely
This commit is contained in:
commit
c758c8623b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ Your pysqlite2 is too old. Anki will appear frozen during long operations."""
|
||||||
def handler():
|
def handler():
|
||||||
if self.inDB:
|
if self.inDB:
|
||||||
# retry in 100ms
|
# retry in 100ms
|
||||||
self.timer(100, func, repeat)
|
self.timer(100, func, False)
|
||||||
else:
|
else:
|
||||||
func()
|
func()
|
||||||
t = QTimer(self.mw)
|
t = QTimer(self.mw)
|
||||||
|
|
Loading…
Reference in a new issue