mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Handle vector names with colon as groups in summary data explorer (#13555)
* Handle vector names with colon as groups in summary data explorer
This commit is contained in:
1 file changed
+10
-2
@@ -183,8 +183,16 @@ void RimSummaryAddressCollection::addAddress( RimSummaryAddress* address )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryAddressCollection::addToSubfolder( QString foldername, CollectionContentType folderType, RimSummaryAddress* address )
|
||||
{
|
||||
RimSummaryAddressCollection* folder = getOrCreateSubfolder( foldername, folderType );
|
||||
folder->addAddress( address );
|
||||
// names with ":" should be split into subfolders
|
||||
auto nameSplit = foldername.split( ':' );
|
||||
|
||||
std::vector<std::pair<QString, CollectionContentType>> folders;
|
||||
for ( const auto& namePart : nameSplit )
|
||||
{
|
||||
folders.push_back( std::make_pair( namePart, folderType ) );
|
||||
}
|
||||
|
||||
addToSubfolderTree( folders, address );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user