From c111b0d4c354e8596fbc07d16a4d7e1d53ebc0e2 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 4 Oct 2019 09:54:57 +0200 Subject: [PATCH] #4811 Source Stepping : Show ensemble stepping when plot is selected --- ApplicationCode/UserInterface/RiuPlotMainWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp b/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp index f35bafc051..9b2ae9264f 100644 --- a/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp +++ b/ApplicationCode/UserInterface/RiuPlotMainWindow.cpp @@ -574,6 +574,12 @@ void RiuPlotMainWindow::updateSummaryPlotToolBar( bool forceUpdateUi ) else { toolBarFields = summaryPlot->summaryCurveCollection()->fieldsToShowInToolbar(); + + if ( toolBarFields.empty() ) + { + // Show ensemble stepping if no fields are available from summary stepping + toolBarFields = summaryPlot->ensembleCurveSetCollection()->fieldsToShowInToolbar(); + } } if ( !m_summaryPlotToolBarEditor->isEditorDataValid( toolBarFields ) )