#3736 Fix Linking issues related to Contour Maps.

* They are not allowed to be master views so a few things should be disallowed.
This commit is contained in:
Gaute Lindkvist
2018-11-22 08:46:01 +01:00
parent d69153c013
commit fcc8ee6e27
4 changed files with 41 additions and 12 deletions

View File

@@ -21,8 +21,9 @@
#include "RiaApplication.h"
#include "RimProject.h"
#include "RimContourMapView.h"
#include "RimGridView.h"
#include "RimProject.h"
#include "RimViewController.h"
#include "RimViewLinker.h"
#include "RimViewLinkerCollection.h"
@@ -54,6 +55,11 @@ bool RicSetMasterViewFeature::isCommandEnabled()
return false;
}
if (dynamic_cast<RimContourMapView*>(activeView) != nullptr)
{
return false;
}
return true;
}