#1190 Make sure well log features are disabled for well allocation objects

This commit is contained in:
Magne Sjaastad
2017-02-07 09:34:11 +01:00
parent b8e838614c
commit 4313409c57
8 changed files with 46 additions and 2 deletions

View File

@@ -19,11 +19,12 @@
#include "RicNewWellLogPlotTrackFeature.h"
#include "RicNewWellLogCurveExtractionFeature.h"
#include "RicWellLogPlotCurveFeatureImpl.h"
#include "RimWellLogPlot.h"
#include "RimWellLogTrack.h"
#include "RicNewWellLogCurveExtractionFeature.h"
#include "cafSelectionManager.h"
#include <QAction>
@@ -36,6 +37,8 @@ CAF_CMD_SOURCE_INIT(RicNewWellLogPlotTrackFeature, "RicNewWellLogPlotTrackFeatur
//--------------------------------------------------------------------------------------------------
bool RicNewWellLogPlotTrackFeature::isCommandEnabled()
{
if (RicWellLogPlotCurveFeatureImpl::parentWellAllocationPlot()) return false;
return selectedWellLogPlot() != NULL;
}
@@ -44,6 +47,8 @@ bool RicNewWellLogPlotTrackFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicNewWellLogPlotTrackFeature::onActionTriggered(bool isChecked)
{
if (RicWellLogPlotCurveFeatureImpl::parentWellAllocationPlot()) return;
RimWellLogPlot* wellLogPlot = selectedWellLogPlot();
if (wellLogPlot)
{