mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -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->updatePlotTitle();
|
||||||
m_previewPlot->updateAxes();
|
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 );
|
m_summaryCurveSelectionEditor->summaryAddressSelection()->setSelectedCurveDefinitions( curveDefs );
|
||||||
|
|
||||||
updateAppearanceEditor();
|
updateAppearanceEditor();
|
||||||
|
Loading…
Reference in New Issue
Block a user