#1981 RFT Plot. Disabled several commands

This commit is contained in:
Bjørn Erik Jensen
2017-10-10 11:18:35 +02:00
parent ac10f21597
commit 886c1ea256
10 changed files with 26 additions and 6 deletions

View File

@@ -23,6 +23,7 @@
#include "RimWellLogPlot.h"
#include "RimWellLogTrack.h"
#include "RimWellRftPlot.h"
#include "cafPdmObjectGroup.h"
#include "cafPdmObjectHandle.h"
@@ -45,8 +46,10 @@ bool RicPasteWellLogTrackFeature::isCommandEnabled()
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(caf::SelectionManager::instance()->selectedItem());
RimWellLogPlot* wellLogPlot = nullptr;
RimWellRftPlot* rftPlot = nullptr;
destinationObject->firstAncestorOrThisOfType(wellLogPlot);
if (!wellLogPlot)
destinationObject->firstAncestorOrThisOfType(rftPlot);
if (!wellLogPlot || rftPlot)
{
return false;
}