]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052699: Incorrect closing of "Manage dimensions" dialog box (edited)
authorimn <imn@opencascade.com>
Tue, 21 Apr 2015 12:53:05 +0000 (15:53 +0300)
committerimn <imn@opencascade.com>
Tue, 21 Apr 2015 12:53:05 +0000 (15:53 +0300)
src/MeasureGUI/MeasureGUI_ManageDimensionsDlg.cxx
src/MeasureGUI/MeasureGUI_ManageDimensionsDlg.h

index f238a6152ec6fc1272c5bd005c4884703b2da817..46d2444591768441cbd368f798577d9a7533821b 100644 (file)
@@ -134,7 +134,7 @@ MeasureGUI_ManageDimensionsDlg::MeasureGUI_ManageDimensionsDlg( GeometryGUI* the
   {
     myObjectSelector->PushButton1->click();
   }
-
+  isNeedRedisplay = false;
   setHelpFileName("managing_dimensions_page.html");
 }
 
@@ -805,6 +805,9 @@ void MeasureGUI_ManageDimensionsDlg::OnFinish()
                              myEditObject->GetStudyEntry(),
                              GEOM::propertyName( GEOM::Dimensions ),
                              QVariant() );
+  if ( isNeedRedisplay ) {
+    redisplay( myEditObject.get());
+  }
 }
 
 //=================================================================================
@@ -1103,8 +1106,8 @@ bool MeasureGUI_ManageDimensionsDlg::AllowedToCancelChanges()
                                             tr( "WRN_MSG_CHANGES_LOST" ),
                                             QMessageBox::Ok,
                                             QMessageBox::Cancel );
-
-  return aResponse == QMessageBox::Ok;
+  isNeedRedisplay = ( aResponse == QMessageBox::Ok );
+  return isNeedRedisplay;
 }
 
 //=================================================================================
index bed9d34650c77657dcb0c45c284336bf7ab54197..39e04f2544b0879f134269859346fa2555f7d2df 100644 (file)
@@ -114,7 +114,7 @@ private:
 
 private:
   GEOM::GeomObjPtr                myEditObject;
-
+  bool                            isNeedRedisplay;
 private:
   DlgRef_1Sel*                    myObjectSelector;
   MeasureGUI_1TreeWidget_4Button* myDimensionView;