tell the user we failed if we fail

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874562
This commit is contained in:
Aaron J. Seigo 2008-10-21 20:19:57 +00:00
parent 195cfe61a4
commit b56a365200

View File

@ -22,6 +22,7 @@
#include <KConfigGroup>
#include <KDesktopFile>
#include <KLocale>
#include <KMessageBox>
#include <knewstuff2/engine.h>
@ -81,7 +82,9 @@ void PlasmoidPackage::createNewWidgetBrowser(QWidget *parent)
// install the packges!
foreach (const QString &package, entry->installedFiles()) {
if (!installPackage(package, defaultPackageRoot())) {
kDebug() << "FAIL!";
kDebug() << "FAIL! on install of" << package;
KMessageBox::error(0, i18n("Installation of <b>%1</b> failed!", package),
i18n("Installation Failed"));
}
}
}