From 1a15d6757756ca66bdab44e5447d94e10d6ea661 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 25 Aug 2016 16:28:29 +0300 Subject: [PATCH] 53539: 0D Element - selection with [Shift] impossible --- src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx b/src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx index 105568581..30a8fc92d 100644 --- a/src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Add0DElemsOnAllNodesDlg.cxx @@ -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: -- 2.39.2