mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
INT PAL 0052699: Incorrect closing of "Manage dimensions" dialog box (edited)
This commit is contained in:
parent
7cbe2e3bae
commit
e786915015
@ -134,7 +134,7 @@ MeasureGUI_ManageDimensionsDlg::MeasureGUI_ManageDimensionsDlg( GeometryGUI* the
|
|||||||
{
|
{
|
||||||
myObjectSelector->PushButton1->click();
|
myObjectSelector->PushButton1->click();
|
||||||
}
|
}
|
||||||
|
isNeedRedisplay = false;
|
||||||
setHelpFileName("managing_dimensions_page.html");
|
setHelpFileName("managing_dimensions_page.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -805,6 +805,9 @@ void MeasureGUI_ManageDimensionsDlg::OnFinish()
|
|||||||
myEditObject->GetStudyEntry(),
|
myEditObject->GetStudyEntry(),
|
||||||
GEOM::propertyName( GEOM::Dimensions ),
|
GEOM::propertyName( GEOM::Dimensions ),
|
||||||
QVariant() );
|
QVariant() );
|
||||||
|
if ( isNeedRedisplay ) {
|
||||||
|
redisplay( myEditObject.get());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -1103,8 +1106,8 @@ bool MeasureGUI_ManageDimensionsDlg::AllowedToCancelChanges()
|
|||||||
tr( "WRN_MSG_CHANGES_LOST" ),
|
tr( "WRN_MSG_CHANGES_LOST" ),
|
||||||
QMessageBox::Ok,
|
QMessageBox::Ok,
|
||||||
QMessageBox::Cancel );
|
QMessageBox::Cancel );
|
||||||
|
isNeedRedisplay = ( aResponse == QMessageBox::Ok );
|
||||||
return aResponse == QMessageBox::Ok;
|
return isNeedRedisplay;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -114,7 +114,7 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
GEOM::GeomObjPtr myEditObject;
|
GEOM::GeomObjPtr myEditObject;
|
||||||
|
bool isNeedRedisplay;
|
||||||
private:
|
private:
|
||||||
DlgRef_1Sel* myObjectSelector;
|
DlgRef_1Sel* myObjectSelector;
|
||||||
MeasureGUI_1TreeWidget_4Button* myDimensionView;
|
MeasureGUI_1TreeWidget_4Button* myDimensionView;
|
||||||
|
Loading…
Reference in New Issue
Block a user