From: azv Date: Wed, 16 Oct 2019 06:33:57 +0000 (+0300) Subject: Issue #3043: Wrong behaviour of selection by filter in a second group X-Git-Tag: V9_4_0b1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae9bad89cd785072d823401f287894ac449da039;p=modules%2Fshaper.git Issue #3043: Wrong behaviour of selection by filter in a second group Initialize the type of selection list with the default value if empty. --- diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 43b380cf7..337aa8acf 100644 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -330,7 +330,9 @@ bool ModuleBase_WidgetMultiSelector::restoreValueCustom() if (aType == ModelAPI_AttributeSelectionList::typeId()) { // Restore shape type std::string aSelectionType = aSelectionListAttr->selectionType().c_str(); - if (!aSelectionType.empty()) { + if (aSelectionType.empty()) + aSelectionListAttr->setSelectionType(myDefMode); + else { setCurrentShapeType(ModuleBase_Tools::shapeType(aSelectionType.c_str())); myDefMode = aSelectionType; myIsFirst = false;