Commit 4769d2f1 authored by Jan Grulich's avatar Jan Grulich
Browse files

Delete download dialog when it is closed

When dialog is not deleted and you open it again, dialog is not re-downloaded

parent 49ee97b1
......@@ -109,6 +109,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()));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment