mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1914 Curve creator. Bring curve creator dialog to front on new plot and edit plot commands
This commit is contained in:
@@ -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<RimSummaryPlot*> plots;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user