mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2020 Move LAS files. Support for submenus and command features with custom name and user data
This commit is contained in:
@@ -656,6 +656,15 @@ void RimWellPath::addWellLogFile(RimWellLogFile* logFileInfo)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPath::deleteWellLogFile(RimWellLogFile* logFileInfo)
|
||||
{
|
||||
detachWellLogFile(logFileInfo);
|
||||
delete logFileInfo;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPath::detachWellLogFile(RimWellLogFile* logFileInfo)
|
||||
{
|
||||
auto pdmObject = dynamic_cast<caf::PdmObjectHandle*>(logFileInfo);
|
||||
for (size_t i = 0; i < m_wellLogFiles.size(); i++)
|
||||
@@ -663,7 +672,6 @@ void RimWellPath::deleteWellLogFile(RimWellLogFile* logFileInfo)
|
||||
if (m_wellLogFiles[i] == pdmObject)
|
||||
{
|
||||
m_wellLogFiles.removeChildObject(pdmObject);
|
||||
delete pdmObject;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user