mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05: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();
|
auto curveCreator = m_curveCreatorFactory->curveCreator();
|
||||||
|
|
||||||
if (!dialog->isVisible())
|
if (!dialog->isVisible())
|
||||||
|
{
|
||||||
dialog->show();
|
dialog->show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dialog->raise();
|
||||||
|
}
|
||||||
|
|
||||||
// Set target plot
|
// Set target plot
|
||||||
std::vector<RimSummaryPlot*> plots;
|
std::vector<RimSummaryPlot*> plots;
|
||||||
|
|||||||
@@ -63,7 +63,13 @@ void RicNewSummaryPlotFeature::onActionTriggered(bool isChecked)
|
|||||||
auto curveCreator = m_curveCreatorFactory->curveCreator();
|
auto curveCreator = m_curveCreatorFactory->curveCreator();
|
||||||
|
|
||||||
if (!dialog->isVisible())
|
if (!dialog->isVisible())
|
||||||
|
{
|
||||||
dialog->show();
|
dialog->show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dialog->raise();
|
||||||
|
}
|
||||||
|
|
||||||
curveCreator->updateFromSummaryPlot(nullptr);
|
curveCreator->updateFromSummaryPlot(nullptr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user