From a5300032e9670903a5d3e1d4edfca9ec1fe58bed Mon Sep 17 00:00:00 2001 From: Rebecca Cox Date: Fri, 1 Dec 2017 15:38:29 +0100 Subject: [PATCH] #2213 Formations: Select formation on a case, only if a single file is imported --- ApplicationCode/Commands/RicImportFormationNamesFeature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp b/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp index 34ee624154..aac802428e 100644 --- a/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp +++ b/ApplicationCode/Commands/RicImportFormationNamesFeature.cpp @@ -74,9 +74,10 @@ void RicImportFormationNamesFeature::onActionTriggered(bool isChecked) } // For each file, find existing Formation names item, or create new - RimFormationNames* formationName = fomNameColl->importFiles(fileNames); + if (fileNames.size() > 1) return; + std::vector cases; proj->allCases(cases);