[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma/appletbrowser
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-09-30 23:21:53
Message-ID: 1222816913.641736.9618.nullmailer () svn ! kde ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic