mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +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);
|
||||
|
||||
SALOME_ListIO io;
|
||||
mySelectionMgr->selectedObjects( io );
|
||||
SALOME_ListIO aList;
|
||||
mySelectionMgr->setSelectedObjects( aList );
|
||||
myEditCurrentArgument->clear();
|
||||
@ -439,6 +441,7 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
||||
}
|
||||
|
||||
//connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||
mySelectionMgr->setSelectedObjects( io );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
@ -523,8 +526,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
||||
}
|
||||
}
|
||||
|
||||
SALOME_ListIO aList;
|
||||
mySelectionMgr->setSelectedObjects( aList );
|
||||
//SALOME_ListIO aList;
|
||||
//mySelectionMgr->setSelectedObjects( aList );
|
||||
mySimulation->SetVisibility(false);
|
||||
SMESH::UpdateView();
|
||||
ConstructorsClicked( GetConstructorId() );
|
||||
@ -550,8 +553,8 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnOk()
|
||||
void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnCancel()
|
||||
{
|
||||
mySelectionMgr->clearFilters();
|
||||
SALOME_ListIO aList;
|
||||
mySelectionMgr->setSelectedObjects( aList );
|
||||
//SALOME_ListIO aList;
|
||||
//mySelectionMgr->setSelectedObjects( aList );
|
||||
SMESH::SetPointRepresentation(false);
|
||||
mySimulation->SetVisibility(false);
|
||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||
|
@ -357,6 +357,8 @@ void SMESHGUI_SewingDlg::Init()
|
||||
void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
||||
{
|
||||
disconnect(mySelectionMgr, 0, this, 0);
|
||||
SALOME_ListIO io;
|
||||
mySelectionMgr->selectedObjects( io );
|
||||
mySelectionMgr->clearSelected();
|
||||
LineEdit1->setText("");
|
||||
LineEdit2->setText("");
|
||||
@ -476,6 +478,7 @@ void SMESHGUI_SewingDlg::ConstructorsClicked (int constructorId)
|
||||
}
|
||||
|
||||
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
|
||||
mySelectionMgr->setSelectedObjects( io );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user