#2535 Use the MainWindowTools class instead of MainWindow directly (part 2)

This commit is contained in:
Jacob Støren
2018-02-27 15:53:33 +01:00
parent d74807d669
commit 72013f4ff8
16 changed files with 45 additions and 47 deletions

View File

@@ -27,7 +27,7 @@
#include "RimIntersectionBox.h"
#include "RimSimWellInView.h"
#include "RiuMainWindow.h"
#include "Riu3DMainWindowTools.h"
#include "RivIntersectionBoxPartMgr.h"
#include "RivIntersectionPartMgr.h"
@@ -177,7 +177,7 @@ void RimIntersectionCollection::appendIntersectionAndUpdate(RimIntersection* int
syncronize2dIntersectionViews();
updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersection);
Riu3DMainWindowTools::selectAsCurrentItem(intersection);
Rim3dView* rimView = nullptr;
firstAncestorOrThisOfType(rimView);
@@ -224,7 +224,7 @@ void RimIntersectionCollection::appendIntersectionBoxAndUpdate(RimIntersectionBo
m_intersectionBoxes.push_back(intersectionBox);
updateConnectedEditors();
RiuMainWindow::instance()->selectAsCurrentItem(intersectionBox);
Riu3DMainWindowTools::selectAsCurrentItem(intersectionBox);
Rim3dView* rimView = nullptr;
firstAncestorOrThisOfType(rimView);