Remove unneccessary guarding against other channels in well log file curve used in rft plot

This commit is contained in:
Jacob Støren 2017-11-15 17:06:46 +01:00
parent 6347c9d716
commit ff7ae94e43

View File

@ -314,21 +314,15 @@ QList<caf::PdmOptionItemInfo> RimWellLogFileCurve::calculateValueOptions(const c
if ( fieldNeedingOptions == &m_wellLogFile )
{
if ( m_wellPath() && m_wellPath->wellLogFiles().size() > 0 )
{
bool isRftChild = isRftPlotChild();
for ( RimWellLogFile* const wellLogFile : m_wellPath->wellLogFiles() )
{
if (!isRftChild || RimWellPlotTools::hasPressureData(wellLogFile))
{
QFileInfo fileInfo(wellLogFile->fileName());
options.push_back(caf::PdmOptionItemInfo(fileInfo.baseName(), wellLogFile));
}
}
}
}
return options;
}