<br><br><div class="gmail_quote">yes I am calling.. this is my code of overloaded accept slot: <br><br>void customPanel::accept()<br>{<br>    this-&gt;setProperty(&quot;MyCommandList&quot;, editor()-&gt;toPlainText());<br>
    pqObjectPanel::accept();<br>
}<br><br>and customPanel is derived public from pqObjectPanel.<br><br>Regards,<br>Pandu.<div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">On Mon, Dec 12, 2011 at 4:46 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you calling this-&gt;Superclass::accept() in your overload of the<br>
accept() slot?<br>
<br>
Utkarsh<br>
<div><div><br>
On Mon, Dec 12, 2011 at 11:32 AM, Pandu tech &lt;<a href="mailto:pandu4tech@gmail.com" target="_blank">pandu4tech@gmail.com</a>&gt; wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; In Paraview,  my class inherited from pqObjectPanel and I reimplemented<br>
&gt; accept slot and it is being called twice.<br>
&gt;<br>
&gt; setModified is called when text is changed that updates the Apply button but<br>
&gt; clicking the apply button calls the panel accept function twice<br>
&gt;<br>
&gt; code: file : pqObjectInspectorWidget.cxx<br>
&gt;<br>
&gt;     if (this-&gt;ShowOnAccept &amp;&amp; modified_state == pqProxy::UNINITIALIZED)<br>
&gt;       {<br>
&gt;       proxies_to_show.insert(refProxy);<br>
&gt;       }<br>
&gt;     if (modified_state != pqProxy::UNMODIFIED)<br>
&gt;       {<br>
&gt;       panel-&gt;accept();   // PANEL FIRST UPDATED HERE<br>
&gt;       }<br>
&gt;     }<br>
&gt;<br>
&gt;   if (this-&gt;CurrentPanel)<br>
&gt;     {<br>
&gt;     pqProxy* refProxy = this-&gt;CurrentPanel-&gt;referenceProxy();<br>
&gt;     int modified_state = refProxy-&gt;modifiedState();<br>
&gt;     if (this-&gt;ShowOnAccept &amp;&amp; modified_state == pqProxy::UNINITIALIZED)<br>
&gt;       {<br>
&gt;       proxies_to_show.insert(refProxy);<br>
&gt;       }<br>
&gt;     this-&gt;CurrentPanel-&gt;accept();  // AND THEN AGAIN HERE<br>
&gt;     }<br>
&gt;<br>
&gt; Need ur suggestions and help in fixing this..<br>
&gt;<br>
&gt; Regards..<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Paraview-developers mailing list<br>
&gt; <a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
&gt; <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
&gt;<br>
</blockquote></div><br>
</div></div></div><br>