configAccepted()

Toussis Manolis manolis at koppermind.homelinux.org
Mon Feb 23 21:23:40 CET 2009


On Monday 23 February 2009 22:16:16 Aaron J. Seigo wrote:
> On Monday 23 February 2009, Toussis Manolis wrote:
> > I re-implementing in my applet the configAccepted() to store the
> > settings...
>
> configChanged() you mean? there is no configAccepted in Plasma::Applet. or
> are you connecting to configAccepted yourself?
Sorry this is not a re-implementation . It's an own slot.


>
> > The thing is that I came across a strange issue.
> > I run the applet if I invoke the config interface, and press ok...
> > configAccepted is called once. Then I close the applet , and
> > configAccepted is called once more. All the options are saved fine.
> >
> > If I run the applet and don't invoke the config interface, and the close
> > the applet. configAccepted() is called only on applet close, and all the
> > settings are reset, and are not saved with the current settings.
>
> obviously because the ui hasn't been set up and so has bogus values.

you 're right, I didn't look my code well, and I found the problem. 
I posted here , because i thought (wrongly) that it was a virtual function of 
applet.

>
> the question is why configAccepted is called on applet exit. is your code
> in playground so i can look at it? or somewhere else i can see it?
Because it is explicity called in ~applet. Sorry again for the post. :-)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090223/6b8ce789/attachment.htm 


More information about the Plasma-devel mailing list