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); //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 ))

View File

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