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:
@@ -43,7 +43,7 @@ bool RicSetMasterViewFeature::isCommandEnabled()
|
||||
if (!activeView) return false;
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimViewLinker* viewLinker = proj->findViewLinkerFromView(activeView);
|
||||
RimViewLinker* viewLinker = activeView->assosiatedViewLinker();
|
||||
if (viewLinker && viewLinker->masterView() == activeView)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user