From 7c1f9b90bad4fd2ff7f9897fc5b3faec1bdbe8ca Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 15 May 2017 07:56:11 +0200 Subject: [PATCH] #1425 Do not show Time History Curve command for flow diag results --- .../RicNewGridTimeHistoryCurveFeature.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp b/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp index 788aba473b..f588f5a4d6 100644 --- a/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp +++ b/ApplicationCode/Commands/SummaryPlotCommands/RicNewGridTimeHistoryCurveFeature.cpp @@ -216,6 +216,15 @@ bool RicNewGridTimeHistoryCurveFeature::isCommandEnabled() if (items.size() > 0) { + const RiuEclipseSelectionItem* eclSelectionItem = dynamic_cast(items[0]); + if (eclSelectionItem) + { + if (eclSelectionItem->m_view->cellResult()->resultType() == RimDefines::FLOW_DIAGNOSTICS) + { + return false; + } + } + return true; }