Salome HOME
Fix for bug IPAL19810(Qt4 porting: Modification - Smoothing after operation cursor...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_SmoothingDlg.cxx
index b1562d899b4ea6ef7518fb4d7ad38dcf1a29edf5..f284df459bf8794c7d14aa7827ca9730dd088be3 100644 (file)
@@ -340,15 +340,15 @@ void SMESHGUI_SmoothingDlg::ClickOnApply()
 
     bool aResult = false;
     try {
+      SUIT_OverrideCursor aWaitCursor;
       SMESH::SMESH_MeshEditor_var aMeshEditor = myMesh->GetMeshEditor();
-      QApplication::setOverrideCursor(Qt::WaitCursor);
+
       if ( CheckBoxParametric->isChecked() )
        aResult = aMeshEditor->SmoothParametric(anElementsId.inout(), aNodesId.inout(),
                                                anIterationLimit, aMaxAspectRatio, aMethod);
       else
        aResult = aMeshEditor->Smooth(anElementsId.inout(), aNodesId.inout(),
                                      anIterationLimit, aMaxAspectRatio, aMethod);
-      QApplication::restoreOverrideCursor();
     } catch (...) {
     }