now that we use plasmapkg via knewstuff to do the installation, we shouldn't try and repeat the trick ourselves afterwards. it gives the illusion that packages aren't installed when they really are.

BUG:187436

svn path=/trunk/KDE/kdelibs/; revision=966843
This commit is contained in:
Aaron J. Seigo 2009-05-11 23:52:25 +00:00
parent bc9e8a7263
commit 6755a8f309

View File

@ -81,22 +81,8 @@ void PlasmoidPackage::createNewWidgetBrowser(QWidget *parent)
{
KNS::Engine engine(0);
if (engine.init("plasmoids.knsrc")) {
//FIXME: this should not be modal, but requires fixes in knewstuff2 first
KNS::Entry::List entries = engine.downloadDialogModal(parent);
foreach (KNS::Entry *entry, entries) {
if (entry->status() != KNS::Entry::Installed) {
continue;
}
// install the packges!
foreach (const QString &package, entry->installedFiles()) {
if (!installPackage(package, defaultPackageRoot())) {
kDebug() << "FAIL! on install of" << package;
KMessageBox::error(0, i18n("Installation of <b>%1</b> failed.", package),
i18n("Installation Failed"));
}
}
}
}
emit newWidgetBrowserFinished();