53539: 0D Element - selection with [Shift] impossible

This commit is contained in:
eap 2016-08-25 16:28:29 +03:00
parent 83b0c984cc
commit 1a15d67577

View File

@ -273,16 +273,17 @@ void SMESHGUI_Add0DElemsOnAllNodesOp::selectionDone()
if (!myDlg->myGroupBox->isEnabled()) return; // inactive if (!myDlg->myGroupBox->isEnabled()) return; // inactive
myIO.Nullify(); myIO.Nullify();
myDlg->setObjectText( 0, "");
updateButtons(); updateButtons();
SALOME_ListIO aList; SALOME_ListIO aList;
selectionMgr()->selectedObjects( aList ); selectionMgr()->selectedObjects( aList );
if ( aList.Extent() == 1 ) if ( aList.Extent() == 1 ) {
myIO = aList.First(); myIO = aList.First();
else }
else {
myDlg->setObjectText( 0, ""); // it clears the selection
return; return;
}
QString ids; QString ids;
switch ( myDlg->getSelectionType() ) { switch ( myDlg->getSelectionType() ) {
case SEL_OBJECT: case SEL_OBJECT: