WellLogPlot. Automatically select well log file when only one exists

This commit is contained in:
Bjørn Erik Jensen 2017-10-24 08:18:03 +02:00
parent 34d77d2733
commit 2d047aab84

View File

@ -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();
} }
} }