From fe3cf9b94a240e3dcb561b9764f626b0abbcd620 Mon Sep 17 00:00:00 2001 From: JJ <69144954+jonjenssen@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:59:26 +0100 Subject: [PATCH] Handle vector names with colon as groups in summary data explorer (#13555) * Handle vector names with colon as groups in summary data explorer --- .../Summary/RimSummaryAddressCollection.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryAddressCollection.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryAddressCollection.cpp index 7c06b49bcc..8f7ef7c222 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryAddressCollection.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryAddressCollection.cpp @@ -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> folders; + for ( const auto& namePart : nameSplit ) + { + folders.push_back( std::make_pair( namePart, folderType ) ); + } + + addToSubfolderTree( folders, address ); } //--------------------------------------------------------------------------------------------------