mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
Summary Editor : Make sure at least one source is selected
This commit is contained in:
parent
cc292b197a
commit
83a1a1fa6d
@ -640,6 +640,17 @@ void RicSummaryPlotEditorUi::populateCurveCreator( const RimSummaryPlot& sourceS
|
||||
m_previewPlot->updatePlotTitle();
|
||||
m_previewPlot->updateAxes();
|
||||
|
||||
if ( curveDefs.empty() )
|
||||
{
|
||||
auto sumCases = RimProject::current()->allSummaryCases();
|
||||
if ( !sumCases.empty() )
|
||||
{
|
||||
RifEclipseSummaryAddress defaultAdr;
|
||||
RiaSummaryCurveDefinition curveDef( sumCases.front(), defaultAdr, false );
|
||||
curveDefs.push_back( curveDef );
|
||||
}
|
||||
}
|
||||
|
||||
m_summaryCurveSelectionEditor->summaryAddressSelection()->setSelectedCurveDefinitions( curveDefs );
|
||||
|
||||
updateAppearanceEditor();
|
||||
|
Loading…
Reference in New Issue
Block a user