mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
WellLogPlot. Automatically select well log file when only one exists
This commit is contained in:
parent
34d77d2733
commit
2d047aab84
@ -72,6 +72,11 @@ void RicNewWellLogFileCurveFeature::onActionTriggered(bool isChecked)
|
|||||||
RimWellLogTrack* wellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
RimWellLogTrack* wellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
||||||
RimWellLogFileCurve* plotCurve = RicWellLogTools::addFileCurve(wellLogPlotTrack);
|
RimWellLogFileCurve* plotCurve = RicWellLogTools::addFileCurve(wellLogPlotTrack);
|
||||||
plotCurve->setWellPath(wellPath);
|
plotCurve->setWellPath(wellPath);
|
||||||
|
|
||||||
|
if (wellPath->wellLogFiles().size() == 1)
|
||||||
|
{
|
||||||
|
plotCurve->setWellLogFile(wellPath->wellLogFiles().front());
|
||||||
|
}
|
||||||
plotCurve->updateConnectedEditors();
|
plotCurve->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user