<!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>
&gt; On Monday 23 February 2009, Toussis Manolis wrote:<br>
&gt; &gt; I re-implementing in my applet the configAccepted() to store the<br>
&gt; &gt; settings...<br>
&gt;<br>
&gt; configChanged() you mean? there is no configAccepted in Plasma::Applet. or<br>
&gt; 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>&gt;<br>
&gt; &gt; The thing is that I came across a strange issue.<br>
&gt; &gt; I run the applet if I invoke the config interface, and press ok...<br>
&gt; &gt; configAccepted is called once. Then I close the applet , and<br>
&gt; &gt; configAccepted is called once more. All the options are saved fine.<br>
&gt; &gt;<br>
&gt; &gt; If I run the applet and don't invoke the config interface, and the close<br>
&gt; &gt; the applet. configAccepted() is called only on applet close, and all the<br>
&gt; &gt; settings are reset, and are not saved with the current settings.<br>
&gt;<br>
&gt; 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>&gt;<br>
&gt; the question is why configAccepted is called on applet exit. is your code<br>
&gt; 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>