#4775 Summary : Do not change source selection if no sources are matching

This commit is contained in:
Magne Sjaastad 2019-10-23 17:39:16 +02:00
parent 28ef4166ea
commit bbfc6188e9

View File

@ -366,8 +366,11 @@ void RimSummaryPlotFilterTextCurveSetEditor::defineUiOrdering( QString uiConfigN
std::vector<caf::PdmPointer<SummarySource>> usedSources( sourcesFromExistingCurves.begin(),
sourcesFromExistingCurves.end() );
m_selectedSources.clear();
m_selectedSources.setValue( usedSources );
if ( !usedSources.empty() )
{
m_selectedSources.clear();
m_selectedSources.setValue( usedSources );
}
// Check if existing filtertext matches all the curves
// Todo: possibly check grid time history curves also