Merge branch 'master' of git://github.com/scout/ankiqt

This commit is contained in:
Damien Elmes 2009-01-10 16:55:34 +09:00
commit 73c043ed7e
2 changed files with 4 additions and 0 deletions

View file

@ -1513,7 +1513,10 @@ day = :d""", d=yesterday)
def openSyncProgress(self): def openSyncProgress(self):
self.syncProgressDialog = QProgressDialog(_("Syncing Media..."), self.syncProgressDialog = QProgressDialog(_("Syncing Media..."),
"", 0, 0, self) "", 0, 0, self)
self.syncProgressDialog.setWindowTitle(_("Syncing Media..."))
self.syncProgressDialog.setCancelButton(None) self.syncProgressDialog.setCancelButton(None)
self.syncProgressDialog.setAutoClose(False)
self.syncProgressDialog.setAutoReset(False)
def closeSyncProgress(self): def closeSyncProgress(self):
self.syncProgressDialog.cancel() self.syncProgressDialog.cancel()

View file

@ -172,6 +172,7 @@ class Sync(QThread):
client.sync() client.sync()
except: except:
self.emit(SIGNAL("bulkSyncFailed")) self.emit(SIGNAL("bulkSyncFailed"))
time.sleep(0.1)
self.emit(SIGNAL("closeSyncProgress")) self.emit(SIGNAL("closeSyncProgress"))
def bulkCallback(self, *args): def bulkCallback(self, *args):