diff --git a/ApplicationCode/ProjectDataModel/RimWellLogPlotCollection.cpp b/ApplicationCode/ProjectDataModel/RimWellLogPlotCollection.cpp index af9bba67a2..f08da1fc96 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogPlotCollection.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogPlotCollection.cpp @@ -56,6 +56,6 @@ void RimWellLogPlotCollection::addWellLogPlot() RimWellLogPlot* plot = new RimWellLogPlot(); wellLogPlots.push_back(plot); - RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true); RiaApplication::instance()->project()->updateConnectedEditors(); + RiuMainWindow::instance()->setCurrentObjectInTreeView(plot); }