{
HYDROGUI_Operation::startOperation();
- HYDROGUI_ProfileInterpolateDlg* aPanel = ::qobject_cast<HYDROGUI_ProfileInterpolateDlg*>( inputPanel() );
- if ( aPanel )
+ if ( isApplyAndClose() )
{
+ HYDROGUI_ProfileInterpolateDlg* aPanel = ::qobject_cast<HYDROGUI_ProfileInterpolateDlg*>( inputPanel() );
+ if ( aPanel )
+ {
aPanel->reset();
aPanel->setInterpolators( interpolators() );
+ }
}
}