Fix icon path in services (not in plasmoid dir)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860298
This commit is contained in:
Petri Damstén 2008-09-12 15:15:38 +00:00
parent e58d973b10
commit b4818c5cac

View File

@ -346,6 +346,8 @@ bool Package::installPackage(const QString& package,
QString iconPath = targetName + '/' + cg.readEntry("Icon");
QFile icon(iconPath);
if (icon.exists()) {
KDesktopFile df(service);
KConfigGroup cg = df.desktopGroup();
cg.writeEntry("Icon", iconPath);
}
}
@ -427,6 +429,7 @@ bool Package::createPackage(const PackageMetadata &metadata,
const QString &destination,
const QString &icon) // static
{
Q_UNUSED(icon)
if (!metadata.isValid()) {
kWarning(550) << "Metadata file is not complete";
return false;