Extender tutorial on techbase
Rob Scheepmaker
r.scheepmaker at student.utwente.nl
Thu Sep 11 18:30:09 CEST 2008
On Thursday 11 September 2008 17:06:10 Marco Martin wrote:
> with furter investigation i've found that it doesn't crash anymore if i
> remove line 194 of applet.cpp
> //destroy temporary extender items, or items that aren't detached, so
> their //configuration won't linger after a plasma restart.
> item->destroy();
>
> why items are destroyed when the config is saved? did'nt understand very
> well the logic of this
That way their configuration is removed. It doesn't really make sense to make
items that are still attached, or are temporary persistent. Upon creation
ExtenderItems get a config group so information can be stored, and this is to
be removed if the item turns out to not be needed anymore after plasma
restarts. destroy() deletes this config group. Apparently something goes wrong
there in this case, I'll investigate further later today. Kuiserver doesn't
have this problem so I'll have to find out what is different here.
> should i set setAutoExpireDelay(0)?
> that would make sense but it's weird, because that problem would arise to
> everybody trying to use extenders in this way?
an autoExpireDelay of 0 is the default, so that wouldn't change anything.
regards,
Rob Scheepmaker
More information about the Plasma-devel
mailing list