mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Transformed static functions from ViewLinker to dynamic functions in RimView
This commit is contained in:
@@ -40,7 +40,7 @@ bool RicUnLinkViewFeature::isCommandEnabled()
|
||||
RimView* activeView = RiaApplication::instance()->activeReservoirView();
|
||||
if (!activeView) return false;
|
||||
|
||||
RimViewController* viewController = activeView->controllingViewLink();
|
||||
RimViewController* viewController = activeView->viewController();
|
||||
|
||||
if (viewController)
|
||||
{
|
||||
@@ -59,7 +59,7 @@ void RicUnLinkViewFeature::onActionTriggered(bool isChecked)
|
||||
RimView* activeView = RiaApplication::instance()->activeReservoirView();
|
||||
if (!activeView) return;
|
||||
|
||||
RimViewController* viewController = activeView->controllingViewLink();
|
||||
RimViewController* viewController = activeView->viewController();
|
||||
caf::SelectionManager::instance()->setSelectedItem(viewController);
|
||||
|
||||
caf::CmdFeature* feature = caf::CmdFeatureManager::instance()->getCommandFeature("RicDeleteItemFeature");
|
||||
|
||||
Reference in New Issue
Block a user