PAL9878 - selection lost after some operations

This commit is contained in:
asl 2005-11-25 14:06:27 +00:00
parent d76a2a2557
commit 6a1c128a1e
2 changed files with 10 additions and 4 deletions

View File

@ -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 ))

View File

@ -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 );
}
//=================================================================================