mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Guarded the Link View command from beeing enabled when no view linker is active
This commit is contained in:
1 parent
92e4fd462d
commit
a92e08639a
1 file changed
+5
@@ -42,6 +42,11 @@ bool RicLinkViewFeature::isCommandEnabled()
|
||||
RimView* activeView = RiaApplication::instance()->activeReservoirView();
|
||||
if (!activeView) return false;
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimViewLinker* viewLinker = proj->viewLinkerCollection->viewLinker();
|
||||
|
||||
if(!viewLinker) return false;
|
||||
|
||||
RimViewController* viewController = activeView->viewController();
|
||||
|
||||
if(viewController)
|
||||
|
||||
Reference in new issue
Block a user