#2266 Curve Creator : Make sure all tree selection fields are assigned selection mode

This commit is contained in:
Magne Sjaastad 2017-12-15 08:24:00 +01:00
parent 9612a7162e
commit 029e0811be

View File

@ -937,10 +937,10 @@ void RiuSummaryCurveDefSelection::buildAddressListForCategoryRecursively(RifEcli
//--------------------------------------------------------------------------------------------------
void RiuSummaryCurveDefSelection::defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute)
{
if (&m_selectedSummaryCategories == field)
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
if (attrib)
{
caf::PdmUiTreeSelectionEditorAttribute* attrib = dynamic_cast<caf::PdmUiTreeSelectionEditorAttribute*> (attribute);
if (attrib)
if (&m_selectedSummaryCategories == field)
{
attrib->fieldToReceiveCurrentItemValue = &m_currentSummaryCategory;
attrib->showTextFilter = false;
@ -948,6 +948,7 @@ void RiuSummaryCurveDefSelection::defineEditorAttribute(const caf::PdmFieldHandl
attrib->setCurrentIndexWhenItemIsChecked = true;
}
// All tree selection editors are set in specified selection mode
attrib->singleSelectionMode = !m_multiSelectionMode;
}
}