mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user