Renamed from setCurrentObjectInTreeView to selectAsCurrentItem

This commit is contained in:
Magne Sjaastad
2015-12-07 10:07:51 +01:00
parent a2bfc12c57
commit dc6a50ec3c
18 changed files with 31 additions and 44 deletions

View File

@@ -105,11 +105,6 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
curve->setWellLogChannelName(wellLog->name());
curve->updatePlotData();
if (wlIdx == selection.size() - 1)
{
uiItem = curve;
}
}
}
@@ -119,10 +114,7 @@ void RicAddWellLogToPlotFeature::onActionTriggered(bool isChecked)
RiaApplication::instance()->project()->updateConnectedEditors();
if (uiItem)
{
RiuMainWindow::instance()->projectTreeView()->selectAsCurrentItem(uiItem);
}
RiuMainWindow::instance()->projectTreeView()->selectAsCurrentItem(selection.back());
}
//--------------------------------------------------------------------------------------------------