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

Oliver Friedrich friedrich_o at web.de
Wed Sep 28 12:28:36 UTC 2011


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



More information about the Plasma-devel mailing list