fixes media sync progress bar not reaching 100%

This commit is contained in:
Samson Melamed 2009-01-10 00:03:35 -05:00
parent 5fc7d08a4a
commit 3832bfddda
2 changed files with 4 additions and 0 deletions

View file

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

View file

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