Delete download dialog when it is closed
When dialog is not deleted and you open it again, dialog is not re-downloaded REVIEW:107413
This commit is contained in:
parent
8b313a1b79
commit
6a16643bf3
@ -114,6 +114,7 @@ void PlasmoidPackage::createNewWidgetBrowser(QWidget *parent)
|
||||
m_knsDialog = knsDialog = new KNS3::DownloadDialog("plasmoids.knsrc", parent);
|
||||
knsDialog->setProperty("DoNotCloseController", true);
|
||||
connect(knsDialog, SIGNAL(accepted()), this, SIGNAL(newWidgetBrowserFinished()));
|
||||
connect(knsDialog, SIGNAL(accepted()), knsDialog, SLOT(deleteLater()));
|
||||
}
|
||||
|
||||
knsDialog->show();
|
||||
|
Loading…
Reference in New Issue
Block a user