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:
parent
4d8374080d
commit
4b0afa6fa7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user