#1775 Do not include SourSimRL result category if no active sourres file

This commit is contained in:
Bjørnar Grip Fjær 2017-08-17 15:01:48 +02:00
parent 6fee321771
commit 37fdadeb69

View File

@ -432,7 +432,8 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptions(
this->firstAncestorOrThisOfType(timeHistoryCurve);
// Do not include flow diagnostics results if it is a time history curve
if ( timeHistoryCurve != nullptr )
// Do not include SourSimRL if no SourSim file is loaded
if ( timeHistoryCurve != nullptr || !hasSourSimRLFile )
{
using ResCatEnum = caf::AppEnum< RiaDefines::ResultCatType >;
for ( size_t i = 0; i < ResCatEnum::size(); ++i )