From e7f19ff89d42b206fcfb31ad19a2976bd1993e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Thu, 21 Sep 2017 15:48:00 +0200 Subject: [PATCH] #1914 Curve creator. Bring curve creator dialog to front on new plot and edit plot commands --- .../SummaryPlotCommands/RicEditSummaryPlotFeature.cpp | 6 ++++++ .../SummaryPlotCommands/RicNewSummaryPlotFeature.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicEditSummaryPlotFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicEditSummaryPlotFeature.cpp index e9462b5534..e8d7272879 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicEditSummaryPlotFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicEditSummaryPlotFeature.cpp @@ -82,7 +82,13 @@ void RicEditSummaryPlotFeature::onActionTriggered(bool isChecked) auto curveCreator = m_curveCreatorFactory->curveCreator(); if (!dialog->isVisible()) + { dialog->show(); + } + else + { + dialog->raise(); + } // Set target plot std::vector plots; diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp index 44fcd02ef3..16cd4186d4 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicNewSummaryPlotFeature.cpp @@ -63,7 +63,13 @@ void RicNewSummaryPlotFeature::onActionTriggered(bool isChecked) auto curveCreator = m_curveCreatorFactory->curveCreator(); if (!dialog->isVisible()) + { dialog->show(); + } + else + { + dialog->raise(); + } curveCreator->updateFromSummaryPlot(nullptr); }