SVN commit 866469 by aseigo: slightly more straightforward M +3 -3 openwidgetassistant.cpp --- trunk/KDE/kdebase/workspace/libs/plasma/appletbrowser/openwidgetassistant.cpp #866468:866469 @@ -180,13 +180,13 @@ QString root = KStandardDirs::locateLocal("data", "plasma/plasmoids/"); kDebug() << "installing" << packageFilePath << "to root dir of" << root; - bool success = installer->installPackage(packageFilePath, root); - delete installer; - if (!success) { + if (!installer->installPackage(packageFilePath, root)) { KMessageBox::error(this, i18n("Installing the package %1 failed.", packageFilePath), i18n("Installation Failure")); } + + delete installer; } } // Plasma namespace