if an error occurs during progress op, reactivate main window

This commit is contained in:
Damien Elmes 2010-02-12 16:46:10 +09:00
parent 0f3a083278
commit 1daf8f9601

View file

@ -230,6 +230,7 @@ Please do not file a bug report with Anki.<br>""")
diag.setMinimumHeight(400)
diag.setMinimumWidth(500)
diag.exec_()
self.clearProgress()
def closeAllDeckWindows(self):
ui.dialogs.closeAll()
@ -2661,6 +2662,11 @@ it to your friends.
if not self.progressWins:
self.unsetBusy()
def clearProgress(self):
# recover on error
self.progressWins = []
self.finishProgress()
def onDbProgress(self):
if self.mainThread != QThread.currentThread():
return