mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
prevent sync error being shown twice when aborting
This commit is contained in:
parent
67c86e8f5e
commit
cdb1cb06a0
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class SyncThread(QThread):
|
||||||
elif ret == "success":
|
elif ret == "success":
|
||||||
self.fireEvent("success")
|
self.fireEvent("success")
|
||||||
elif ret == "serverAbort":
|
elif ret == "serverAbort":
|
||||||
self.fireEvent("error", self.client.syncMsg)
|
pass
|
||||||
else:
|
else:
|
||||||
self.fireEvent("error", "Unknown sync return code.")
|
self.fireEvent("error", "Unknown sync return code.")
|
||||||
self.syncMsg = self.client.syncMsg
|
self.syncMsg = self.client.syncMsg
|
||||||
|
|
Loading…
Reference in a new issue