mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1981 RFT Plot. Disabled several commands
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user