#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

@@ -21,7 +21,7 @@
#include "RiaApplication.h"
#include "RiuMainWindow.h"
#include "Riu3DMainWindowTools.h"
#include "RicPasteFeatureImpl.h"
@@ -112,7 +112,7 @@ void RicPasteEclipseViewsFeature::onActionTriggered(bool isChecked)
lastViewCopy = rimReservoirView;
}
if (lastViewCopy) RiuMainWindow::instance()->selectAsCurrentItem(lastViewCopy);
if (lastViewCopy) Riu3DMainWindowTools::selectAsCurrentItem(lastViewCopy);
}
//--------------------------------------------------------------------------------------------------

View File

@@ -21,7 +21,7 @@
#include "RicPasteFeatureImpl.h"
#include "RiuMainWindow.h"
#include "Riu3DMainWindowTools.h"
#include "RimGeoMechView.h"
#include "RimGeoMechCase.h"
@@ -105,7 +105,7 @@ void RicPasteGeoMechViewsFeature::onActionTriggered(bool isChecked)
lastViewCopy = rimReservoirView;
}
if (lastViewCopy) RiuMainWindow::instance()->selectAsCurrentItem(lastViewCopy);
if (lastViewCopy) Riu3DMainWindowTools::selectAsCurrentItem(lastViewCopy);
}
//--------------------------------------------------------------------------------------------------