Fix icon handling in package metadata
This commit is contained in:
parent
fcd254345c
commit
90d215d1dc
@ -91,6 +91,7 @@ void PackageMetadata::write(const QString &filename) const
|
|||||||
config.writeEntry("Encoding", "UTF-8");
|
config.writeEntry("Encoding", "UTF-8");
|
||||||
|
|
||||||
config.writeEntry("Name", d->name);
|
config.writeEntry("Name", d->name);
|
||||||
|
config.writeEntry("Icon", d->icon);
|
||||||
config.writeEntry("Comment", d->description);
|
config.writeEntry("Comment", d->description);
|
||||||
config.writeEntry("Keywords", d->keywords);
|
config.writeEntry("Keywords", d->keywords);
|
||||||
config.writeEntry("X-KDE-ServiceTypes", d->serviceType);
|
config.writeEntry("X-KDE-ServiceTypes", d->serviceType);
|
||||||
@ -117,7 +118,7 @@ void PackageMetadata::read(const QString &filename)
|
|||||||
KConfigGroup config = cfg.desktopGroup();
|
KConfigGroup config = cfg.desktopGroup();
|
||||||
|
|
||||||
d->name = config.readEntry("Name", d->name);
|
d->name = config.readEntry("Name", d->name);
|
||||||
d->icon = config.readEntry("Icon", d->name);
|
d->icon = config.readEntry("Icon", d->icon);
|
||||||
d->description = config.readEntry("Comment", d->description);
|
d->description = config.readEntry("Comment", d->description);
|
||||||
d->keywords = config.readEntry("Keywords", d->keywords);
|
d->keywords = config.readEntry("Keywords", d->keywords);
|
||||||
d->serviceType = config.readEntry("X-KDE-ServiceTypes", d->serviceType);
|
d->serviceType = config.readEntry("X-KDE-ServiceTypes", d->serviceType);
|
||||||
|
Loading…
Reference in New Issue
Block a user