<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Arial'; font-size:11pt; font-weight:400; font-style:normal;">On Monday 23 February 2009 22:16:16 Aaron J. Seigo wrote:<br>
> On Monday 23 February 2009, Toussis Manolis wrote:<br>
> > I re-implementing in my applet the configAccepted() to store the<br>
> > settings...<br>
><br>
> configChanged() you mean? there is no configAccepted in Plasma::Applet. or<br>
> are you connecting to configAccepted yourself?<br>
Sorry this is not a re-implementation . It's an own slot.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>><br>
> > The thing is that I came across a strange issue.<br>
> > I run the applet if I invoke the config interface, and press ok...<br>
> > configAccepted is called once. Then I close the applet , and<br>
> > configAccepted is called once more. All the options are saved fine.<br>
> ><br>
> > If I run the applet and don't invoke the config interface, and the close<br>
> > the applet. configAccepted() is called only on applet close, and all the<br>
> > settings are reset, and are not saved with the current settings.<br>
><br>
> obviously because the ui hasn't been set up and so has bogus values.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>you 're right, I didn't look my code well, and I found the problem. <br>
I posted here , because i thought (wrongly) that it was a virtual function of applet.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>><br>
> the question is why configAccepted is called on applet exit. is your code<br>
> in playground so i can look at it? or somewhere else i can see it?<br>
Because it is explicity called in ~applet. Sorry again for the post. :-)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>