diff --git a/src/plasma/package.cpp b/src/plasma/package.cpp index 02417585f..6ba7a6fce 100644 --- a/src/plasma/package.cpp +++ b/src/plasma/package.cpp @@ -721,13 +721,7 @@ KJob *Package::install(const QString &sourcePackage, const QString &packageRoot) KJob *Package::uninstall(const QString &packageName, const QString &packageRoot) { - //FIXME:packageName unused, name taken from metadata().pluginName() ? - //can this become either just uninstall() otherwise maintain parameters and be static? - - const QString pname = metadata().pluginName(); - - QString proot = path(); - proot.replace(pname, ""); + d->createPackageMetadata(packageRoot + packageName); return d->structure.data()->uninstall(this, packageRoot); }