{
if( myIsEdit )
{
- myEditedObject = Handle(HYDROData_PolylineXY)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
+ if ( isApplyAndClose() )
+ myEditedObject = Handle(HYDROData_PolylineXY)::DownCast( HYDROGUI_Tool::GetSelectedObject( module() ) );
if ( !myEditedObject.IsNull() && !myEditedObject->IsEditable() )
{
// Polyline is imported from GEOM module an is not recognized as
aPanel->setOCCViewer( aViewManager ? aViewManager->getOCCViewer() : 0 );
setPreviewManager( aViewManager );
+ if ( isApplyAndClose() )
+ setCursor();
+
QString aPolylineName;
if( !myEditedObject.IsNull() )
{
void HYDROGUI_PolylineOp::abortOperation()
{
+ restoreCursor();
+
HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel();
if ( aPanel )
aPanel->setOCCViewer( 0 );
void HYDROGUI_PolylineOp::commitOperation()
{
- HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel();
- if ( aPanel )
- aPanel->setOCCViewer( 0 );
+ if ( isApplyAndClose() )
+ {
+ restoreCursor();
+
+ HYDROGUI_PolylineDlg* aPanel = (HYDROGUI_PolylineDlg*)inputPanel();
+ if ( aPanel )
+ aPanel->setOCCViewer( 0 );
+ }
+
erasePreview();
HYDROGUI_Operation::commitOperation();