diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 93c88a683..542ba2f0d 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2197,7 +2197,6 @@ it to your friends. self.syncThread = ui.sync.Sync(self, u, p, interactive, onlyMerge) self.connect(self.syncThread, SIGNAL("setStatus"), self.setSyncStatus) self.connect(self.syncThread, SIGNAL("showWarning"), self.showSyncWarning) - self.connect(self.syncThread, SIGNAL("noSyncResponse"), self.noSyncResponse) self.connect(self.syncThread, SIGNAL("moveToState"), self.moveToState) self.connect(self.syncThread, SIGNAL("noMatchingDeck"), self.selectSyncDeck) self.connect(self.syncThread, SIGNAL("syncClockOff"), self.syncClockOff) @@ -2347,12 +2346,6 @@ This deck already exists on your computer. Overwrite the local copy?"""), ui.preferences.Preferences(self, self.config).dialog.tabWidget.\ setCurrentIndex(1) - def noSyncResponse(self): - msg = _("Sync Failed. Please check your internet connection.") - if self.config['proxyHost']: - msg += _(" (and proxy settings)") - self.setNotice(msg) - def openSyncProgress(self): self.syncProgressDialog = QProgressDialog(_("Syncing Media..."), "", 0, 0, self) diff --git a/ankiqt/ui/sync.py b/ankiqt/ui/sync.py index 63e24a4dc..2d25af6b2 100755 --- a/ankiqt/ui/sync.py +++ b/ankiqt/ui/sync.py @@ -56,9 +56,7 @@ class Sync(QThread): def error(self, error): if getattr(error, 'data', None) is None: error.data = {} - if error.data.get('type') == 'noResponse': - self.emit(SIGNAL("noSyncResponse")) - elif error.data.get('type') == 'clockOff': + if error.data.get('type') == 'clockOff': pass else: error = self.getErrorMessage(error)