only close deck if downloading deck, not plugin

This commit is contained in:
Damien Elmes 2009-06-12 12:21:07 +09:00
parent 56d0e20cca
commit f3e8f6a5db

View file

@ -184,8 +184,9 @@ class GetShared(QDialog):
self.form.table.setSelectionBehavior(QAbstractItemView.SelectRows) self.form.table.setSelectionBehavior(QAbstractItemView.SelectRows)
def accept(self): def accept(self):
if not self.parent.saveAndClose(hideWelcome=True, parent=self): if self.type == 0:
return QDialog.accept(self) if not self.parent.saveAndClose(hideWelcome=True, parent=self):
return QDialog.accept(self)
h = QHttp(self) h = QHttp(self)
h.connect(h, SIGNAL("requestFinished(int,bool)"), self.onReqFin2) h.connect(h, SIGNAL("requestFinished(int,bool)"), self.onReqFin2)
h.connect(h, SIGNAL("proxyAuthenticationRequired(QNetworkProxy," h.connect(h, SIGNAL("proxyAuthenticationRequired(QNetworkProxy,"