mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
0052938: Visibility of object is wrong when closing "Create group" dilaog
This commit is contained in:
parent
072d2d2cd9
commit
449aed5c8e
@ -88,7 +88,8 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg (Mode mode, GeometryGUI* theGeometryGUI, QW
|
|||||||
myBusy(false),
|
myBusy(false),
|
||||||
myIsShapeType(false),
|
myIsShapeType(false),
|
||||||
myIsHiddenMain(false),
|
myIsHiddenMain(false),
|
||||||
myWasHiddenMain(true)
|
myWasHiddenMain(true),
|
||||||
|
myIsAccept(false)
|
||||||
{
|
{
|
||||||
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
|
||||||
@ -235,10 +236,10 @@ GroupGUI_GroupDlg::~GroupGUI_GroupDlg()
|
|||||||
GEOM_Displayer* aDisplayer = getDisplayer();
|
GEOM_Displayer* aDisplayer = getDisplayer();
|
||||||
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
bool isHideObjects = resMgr->booleanValue( "Geometry", "hide_input_object", true);
|
bool isHideObjects = resMgr->booleanValue( "Geometry", "hide_input_object", true);
|
||||||
if (myWasHiddenMain) {
|
if (myWasHiddenMain || ( isHideObjects && myIsAccept ) ) {
|
||||||
myIsHiddenMain = true;
|
myIsHiddenMain = true;
|
||||||
}
|
}
|
||||||
else if (!isHideObjects) {
|
else {
|
||||||
aDisplayer->Display(myMainObj);
|
aDisplayer->Display(myMainObj);
|
||||||
myIsHiddenMain = false;
|
myIsHiddenMain = false;
|
||||||
}
|
}
|
||||||
@ -395,7 +396,8 @@ bool GroupGUI_GroupDlg::ClickOnApply()
|
|||||||
setIsDisplayResult( false );
|
setIsDisplayResult( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!onAccept(myMode == CreateGroup, true, isApplyAndClose()))
|
myIsAccept = onAccept(myMode == CreateGroup, true, isApplyAndClose());
|
||||||
|
if (!myIsAccept)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(!isApplyAndClose()) {
|
if(!isApplyAndClose()) {
|
||||||
|
@ -115,6 +115,7 @@ private:
|
|||||||
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
|
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
|
||||||
QList<int> myGroupIdList;
|
QList<int> myGroupIdList;
|
||||||
int myDmMode;
|
int myDmMode;
|
||||||
|
bool myIsAccept;
|
||||||
|
|
||||||
QPushButton* mySelBtn;
|
QPushButton* mySelBtn;
|
||||||
QLineEdit* myMainName;
|
QLineEdit* myMainName;
|
||||||
|
Loading…
Reference in New Issue
Block a user