Plasma Applet empty config entrymap in init() but filled entrymap after init()

Oliver Friedrich friedrich_o at web.de
Fri Sep 30 09:43:11 UTC 2011


Ok, I figured out that this problem is connected with the plasmoidviewer 
since there are no problems on desktop.
For me it's solved but some should maybe have a look because its really 
annoying

Am 28.09.2011 14:28, schrieb Oliver Friedrich:
> Hello
>
> I'm writing an applet. Therefore I call in init() configChanged() 
> which calls "KConfigGroup cg=config()".
> cg.entryMap() should return the entries I put in before.
> The problem is that the entryMap is empty until init() is finished.
> So when I call at the end of init() config() and have a look at the 
> entries I get an empty map.
> But right after init() configChanged() is called (seems to be 
> automatically) and there the right values are read.
>
> Why can't I get the saved values in init()
>
> my code:
> http://pastebin.com/aTmhjLeH
>
> Thanks
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>


More information about the Plasma-devel mailing list