mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2266 Curve Creator : Make sure all tree selection fields are assigned selection mode
This commit is contained in:
parent
9612a7162e
commit
029e0811be
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user