mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
only close deck if downloading deck, not plugin
This commit is contained in:
parent
56d0e20cca
commit
f3e8f6a5db
1 changed files with 3 additions and 2 deletions
|
@ -184,8 +184,9 @@ class GetShared(QDialog):
|
|||
self.form.table.setSelectionBehavior(QAbstractItemView.SelectRows)
|
||||
|
||||
def accept(self):
|
||||
if not self.parent.saveAndClose(hideWelcome=True, parent=self):
|
||||
return QDialog.accept(self)
|
||||
if self.type == 0:
|
||||
if not self.parent.saveAndClose(hideWelcome=True, parent=self):
|
||||
return QDialog.accept(self)
|
||||
h = QHttp(self)
|
||||
h.connect(h, SIGNAL("requestFinished(int,bool)"), self.onReqFin2)
|
||||
h.connect(h, SIGNAL("proxyAuthenticationRequired(QNetworkProxy,"
|
||||
|
|
Loading…
Reference in a new issue