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,6 +184,7 @@ class GetShared(QDialog):
|
||||||
self.form.table.setSelectionBehavior(QAbstractItemView.SelectRows)
|
self.form.table.setSelectionBehavior(QAbstractItemView.SelectRows)
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
|
if self.type == 0:
|
||||||
if not self.parent.saveAndClose(hideWelcome=True, parent=self):
|
if not self.parent.saveAndClose(hideWelcome=True, parent=self):
|
||||||
return QDialog.accept(self)
|
return QDialog.accept(self)
|
||||||
h = QHttp(self)
|
h = QHttp(self)
|
||||||
|
|
Loading…
Reference in a new issue