Guarded the Link View command from beeing enabled when no view linker is active

This commit is contained in:
Jacob Støren 2016-11-17 17:39:01 +01:00
parent 92e4fd462d
commit a92e08639a

View File

@ -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)