mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
fix bug 10073. Check isVisible() in enterEvent() which unexpectedly comes after accept()
This commit is contained in:
parent
aeef41e893
commit
dcc030258b
@ -389,8 +389,7 @@ void SMESHGUI_CreatePatternDlg::onSave()
|
||||
//SUIT_Application::getDesktop()->setSelectionModes(ActorSelection);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
aViewWindow->SetSelectionMode(ActorSelection);
|
||||
//disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
disconnect(mySMESHGUI, 0, this, 0);
|
||||
mySMESHGUI->ResetState();
|
||||
accept();
|
||||
@ -582,10 +581,13 @@ void SMESHGUI_CreatePatternDlg::onDeactivate()
|
||||
//=======================================================================
|
||||
void SMESHGUI_CreatePatternDlg::enterEvent (QEvent*)
|
||||
{
|
||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||
setEnabled(true);
|
||||
activateSelection();
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
|
||||
// there is a stange problem that enterEvent() comes after onSave()
|
||||
if ( isVisible () ) {
|
||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||
setEnabled(true);
|
||||
activateSelection();
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), SLOT(onSelectionDone()));
|
||||
}
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user