<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->setProperty("MyCommandList", editor()->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"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></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->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 <<a href="mailto:pandu4tech@gmail.com" target="_blank">pandu4tech@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> In Paraview, my class inherited from pqObjectPanel and I reimplemented<br>
> accept slot and it is being called twice.<br>
><br>
> setModified is called when text is changed that updates the Apply button but<br>
> clicking the apply button calls the panel accept function twice<br>
><br>
> code: file : pqObjectInspectorWidget.cxx<br>
><br>
> if (this->ShowOnAccept && modified_state == pqProxy::UNINITIALIZED)<br>
> {<br>
> proxies_to_show.insert(refProxy);<br>
> }<br>
> if (modified_state != pqProxy::UNMODIFIED)<br>
> {<br>
> panel->accept(); // PANEL FIRST UPDATED HERE<br>
> }<br>
> }<br>
><br>
> if (this->CurrentPanel)<br>
> {<br>
> pqProxy* refProxy = this->CurrentPanel->referenceProxy();<br>
> int modified_state = refProxy->modifiedState();<br>
> if (this->ShowOnAccept && modified_state == pqProxy::UNINITIALIZED)<br>
> {<br>
> proxies_to_show.insert(refProxy);<br>
> }<br>
> this->CurrentPanel->accept(); // AND THEN AGAIN HERE<br>
> }<br>
><br>
> Need ur suggestions and help in fixing this..<br>
><br>
> Regards..<br>
><br>
</div></div>> _______________________________________________<br>
> Paraview-developers mailing list<br>
> <a href="mailto:Paraview-developers@paraview.org" target="_blank">Paraview-developers@paraview.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
><br>
</blockquote></div><br>
</div></div></div><br>