fix progress handler

This commit is contained in:
Damien Elmes 2011-03-24 09:12:50 +09:00
parent 05432e1b32
commit edd04cffa8

View file

@ -30,7 +30,7 @@ class ProgressManager(object):
def _dbProgress(self): def _dbProgress(self):
"Called from SQLite." "Called from SQLite."
# do nothing if we don't have a progress window # do nothing if we don't have a progress window
if not self._progressWin: if not self._win:
return return
# make sure we're not executing too frequently # make sure we're not executing too frequently
if (time.time() - self.lastDbProgress) < 0.2: if (time.time() - self.lastDbProgress) < 0.2: