From ad15739641c60cb93c181c9aa7ddba391beae51e Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 23 Nov 2012 12:45:22 +0100 Subject: [PATCH] Delete download dialog when it is closed When dialog is not deleted and you open it again, dialog is not re-downloaded REVIEW:107413 --- private/packages.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/private/packages.cpp b/private/packages.cpp index 2519341ae..50b6ed806 100644 --- a/private/packages.cpp +++ b/private/packages.cpp @@ -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())); } knsDialog->show();