mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guarded the Link View command from beeing enabled when no view linker is active
This commit is contained in:
parent
92e4fd462d
commit
a92e08639a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user