KDE/kdebase/workspace/libs/plasma

Sebastian Sauer mail at dipe.org
Sun Jul 13 14:06:54 CEST 2008


SVN commit 831832 by sebsauer:

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 at kde.org



 M  +2 -1      package.cpp  


--- trunk/KDE/kdebase/workspace/libs/plasma/package.cpp #831831:831832
@@ -301,7 +301,8 @@
 
     // 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


More information about the Panel-devel mailing list