mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2535 Use the MainWindowTools class instead of MainWindow directly (part 1)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "RifWellPathImporter.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimFishboneWellPathCollection, "WellPathCompletionCollection");
|
||||
@@ -133,7 +133,7 @@ void RimFishboneWellPathCollection::appendCompletion(RimFishboneWellPath* comple
|
||||
m_wellPaths.push_back(completion);
|
||||
|
||||
updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(completion);
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(completion);
|
||||
|
||||
uiCapability()->setUiHidden(!m_wellPaths.empty());
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "RifWellPathImporter.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "Riu3DMainWindowTools.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimPerforationCollection, "PerforationCollection");
|
||||
@@ -81,7 +81,7 @@ void RimPerforationCollection::appendPerforation(RimPerforationInterval* perfora
|
||||
perforation->setUnitSystemSpecificDefaults();
|
||||
|
||||
updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(perforation);
|
||||
Riu3DMainWindowTools::selectAsCurrentItem(perforation);
|
||||
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||
|
||||
Reference in New Issue
Block a user