if ( !aView3d.IsNull() && !myClippingPlane.IsNull() )
aView3d->SetPlaneOn( myClippingPlane );
- if (!myView->isCuttingPlane())
- myAction->setOn( false );
+ myAction->setOn( false );
QDialog::closeEvent( e );
}
if ( !aView3d.IsNull() && !myClippingPlane.IsNull() )
aView3d->SetPlaneOn( myClippingPlane );
- if (!myView->isCuttingPlane())
- myAction->setOn( false );
+ myAction->setOn( false );
reject();
}
{
hide();
}
+
+/*!
+ Custom handling of close event: toggle action
+*/
+void
+OCCViewer_SetRotationPointDlg::closeEvent( QCloseEvent* e )
+{
+ myAction->setOn( false );
+ QDialog::closeEvent( e );
+}