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
myIO.Nullify();
myDlg->setObjectText( 0, "");
updateButtons();
SALOME_ListIO aList;
selectionMgr()->selectedObjects( aList );
if ( aList.Extent() == 1 )
if ( aList.Extent() == 1 ) {
myIO = aList.First();
else
}
else {
myDlg->setObjectText( 0, ""); // it clears the selection
return;
}
QString ids;
switch ( myDlg->getSelectionType() ) {
case SEL_OBJECT: