fix crash cause of a rather interesting design-decision in KConfig;

configgroup = KDesktopFile().desktopGroup()
means that configgroup has now a dangling pointer to it's master :-/

CC_MAIL:panel-devel@kde.org


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831832
This commit is contained in:
Sebastian Sauer 2008-07-13 12:06:53 +00:00
parent 4d8374080d
commit 4b0afa6fa7

View File

@ -301,7 +301,8 @@ bool Package::installPackage(const QString& package,
// and now we register it as a service =)
QString metaPath = targetName + "/metadata.desktop";
KConfigGroup cg = KDesktopFile(metaPath).desktopGroup();
KDesktopFile df(metaPath);
KConfigGroup cg = df.desktopGroup();
// Q: should not installing it as a service disqualify it?
// Q: i don't think so since KServiceTypeTrader may not be