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-&gt;ShowOnAccept &amp;&amp; modified_state == pqProxy::UNINITIALIZED)<br>      {<br>      proxies_to_show.insert(refProxy);<br>      }<br>    if (modified_state != pqProxy::UNMODIFIED)<br>
      {<br>      panel-&gt;accept();   // PANEL FIRST UPDATED HERE<br>      }<br>    }<br><br>  if (this-&gt;CurrentPanel)<br>    {<br>    pqProxy* refProxy = this-&gt;CurrentPanel-&gt;referenceProxy();<br>    int modified_state = refProxy-&gt;modifiedState();<br>
    if (this-&gt;ShowOnAccept &amp;&amp; modified_state == pqProxy::UNINITIALIZED)<br>      {<br>      proxies_to_show.insert(refProxy);<br>      }<br>    this-&gt;CurrentPanel-&gt;accept();  // AND THEN AGAIN HERE<br>    }<br>
<br>Need ur suggestions and help in fixing this..<br><br>Regards..<br>