mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2369 Elm Props: Close selected files
This commit is contained in:
@@ -47,6 +47,24 @@ void RifElementPropertyReader::addFile(const std::string& fileName)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifElementPropertyReader::removeFile(const std::string& fileName)
|
||||
{
|
||||
std::map<std::string, RifElementPropertyMetadata> tempMetaData;
|
||||
|
||||
for (std::pair<std::string, RifElementPropertyMetadata> metaData : m_fieldsMetaData)
|
||||
{
|
||||
if (metaData.second.fileName.toStdString() != fileName)
|
||||
{
|
||||
tempMetaData[metaData.first] = metaData.second;
|
||||
}
|
||||
}
|
||||
|
||||
m_fieldsMetaData.swap(tempMetaData);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user