#1288 Added defaultFlowDiagSolution to RimEclipseResultCase

This commit is contained in:
Magne Sjaastad
2017-03-09 22:45:47 +01:00
parent 7e4906fced
commit 40a5f8dc02
6 changed files with 22 additions and 8 deletions

View File

@@ -48,8 +48,8 @@ bool RicShowWellAllocationPlotFeature::isCommandEnabled()
activeView->firstAncestorOrThisOfType(eclCase);
if (eclCase)
{
std::vector<RimFlowDiagSolution*> flowSols = eclCase->flowDiagSolutions();
if (flowSols.size() > 0)
RimFlowDiagSolution* defaultFlowDiagSolution = eclCase->defaultFlowDiagSolution();
if (defaultFlowDiagSolution)
{
return true;
}