mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Remove unneccessary guarding against other channels in well log file curve used in rft plot
This commit is contained in:
parent
6347c9d716
commit
ff7ae94e43
@ -312,20 +312,14 @@ QList<caf::PdmOptionItemInfo> RimWellLogFileCurve::calculateValueOptions(const c
|
||||
}
|
||||
}
|
||||
|
||||
if (fieldNeedingOptions == &m_wellLogFile)
|
||||
if ( fieldNeedingOptions == &m_wellLogFile )
|
||||
{
|
||||
|
||||
if (m_wellPath() && m_wellPath->wellLogFiles().size() > 0)
|
||||
if ( m_wellPath() && m_wellPath->wellLogFiles().size() > 0 )
|
||||
{
|
||||
bool isRftChild = isRftPlotChild();
|
||||
|
||||
for (RimWellLogFile* const wellLogFile : m_wellPath->wellLogFiles())
|
||||
for ( RimWellLogFile* const wellLogFile : m_wellPath->wellLogFiles() )
|
||||
{
|
||||
if (!isRftChild || RimWellPlotTools::hasPressureData(wellLogFile))
|
||||
{
|
||||
QFileInfo fileInfo(wellLogFile->fileName());
|
||||
options.push_back(caf::PdmOptionItemInfo(fileInfo.baseName(), wellLogFile));
|
||||
}
|
||||
QFileInfo fileInfo(wellLogFile->fileName());
|
||||
options.push_back(caf::PdmOptionItemInfo(fileInfo.baseName(), wellLogFile));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user