Extender tutorial on techbase

Marco Martin notmart at gmail.com
Thu Sep 11 17:06:10 CEST 2008


On Wednesday 10 September 2008, Marco Martin wrote:
> On Wednesday 10 September 2008, Rob Scheepmaker wrote:
> > On Wednesday 10 September 2008 15:02:23 Marco Martin wrote:
> > > another problem:
> > > adding a clock on the desktop when plasma is already started produces a
> > > crash, at line 389 of extenderitem.cpp widget->setParentItem(this);
> > > don't understand why just setting a parent item would crash :-/
> > > instead if the clock is saved in plasma-appletsrc it gets created
> > > without any problems
> >
> > Can you post a backtrace? It might contain some useful information.
>
> sure (yeah, i know, qt symbols missing, i'm awful:)).
> looking at it it seems that someone tries to delete the extenderitem, kinda
> weird
>
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

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?

Cheers,
Marco Martin


More information about the Plasma-devel mailing list