Hi All,<br><br>In Paraview, my class inherited from pqObjectPanel and I reimplemented accept slot and it is being called twice.<br><br>setModified is called when text is changed that updates the Apply button but 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>