Fix icon path in services (not in plasmoid dir)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=860298
This commit is contained in:
parent
e58d973b10
commit
b4818c5cac
@ -346,6 +346,8 @@ bool Package::installPackage(const QString& package,
|
|||||||
QString iconPath = targetName + '/' + cg.readEntry("Icon");
|
QString iconPath = targetName + '/' + cg.readEntry("Icon");
|
||||||
QFile icon(iconPath);
|
QFile icon(iconPath);
|
||||||
if (icon.exists()) {
|
if (icon.exists()) {
|
||||||
|
KDesktopFile df(service);
|
||||||
|
KConfigGroup cg = df.desktopGroup();
|
||||||
cg.writeEntry("Icon", iconPath);
|
cg.writeEntry("Icon", iconPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -427,6 +429,7 @@ bool Package::createPackage(const PackageMetadata &metadata,
|
|||||||
const QString &destination,
|
const QString &destination,
|
||||||
const QString &icon) // static
|
const QString &icon) // static
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(icon)
|
||||||
if (!metadata.isValid()) {
|
if (!metadata.isValid()) {
|
||||||
kWarning(550) << "Metadata file is not complete";
|
kWarning(550) << "Metadata file is not complete";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user