mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
PAL9878 - selection lost after some operations
This commit is contained in:
parent
d76a2a2557
commit
6a1c128a1e
@ -382,6 +382,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
|||||||
{
|
{
|
||||||
//disconnect(mySelectionMgr, 0, this, 0);
|
//disconnect(mySelectionMgr, 0, this, 0);
|
||||||
|
|
||||||
|
SALOME_ListIO io;
|
||||||
|
mySelectionMgr->selectedObjects( io );
|
||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
mySelectionMgr->setSelectedObjects( aList );
|
mySelectionMgr->setSelectedObjects( aList );
|
||||||
myEditCurrentArgument->clear();
|
myEditCurrentArgument->clear();
|
||||||
@ -439,6 +441,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
//connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||||
|
mySelectionMgr->setSelectedObjects( io );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -523,8 +526,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SALOME_ListIO aList;
|
//SALOME_ListIO aList;
|
||||||
mySelectionMgr->setSelectedObjects( aList );
|
//mySelectionMgr->setSelectedObjects( aList );
|
||||||
mySimulation->SetVisibility(false);
|
mySimulation->SetVisibility(false);
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
ConstructorsClicked( GetConstructorId() );
|
ConstructorsClicked( GetConstructorId() );
|
||||||
@ -550,8 +553,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnOk()
|
|||||||
void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnCancel()
|
void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnCancel()
|
||||||
{
|
{
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
SALOME_ListIO aList;
|
//SALOME_ListIO aList;
|
||||||
mySelectionMgr->setSelectedObjects( aList );
|
//mySelectionMgr->setSelectedObjects( aList );
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
mySimulation->SetVisibility(false);
|
mySimulation->SetVisibility(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
|
@ -357,6 +357,8 @@ void SMESHGUI_SewingDlg::Init()
|
|||||||
void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
||||||
{
|
{
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
|
SALOME_ListIO io;
|
||||||
|
mySelectionMgr->selectedObjects( io );
|
||||||
mySelectionMgr->clearSelected();
|
mySelectionMgr->clearSelected();
|
||||||
LineEdit1->setText("");
|
LineEdit1->setText("");
|
||||||
LineEdit2->setText("");
|
LineEdit2->setText("");
|
||||||
@ -476,6 +478,7 @@ void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||||
|
mySelectionMgr->setSelectedObjects( io );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user