#2349 Elm Props: Use caf::FilePath instead of QString

This commit is contained in:
Rebecca Cox
2018-01-12 14:39:15 +01:00
parent efaaab1dc6
commit a97dd087d6
3 changed files with 48 additions and 18 deletions

View File

@@ -55,10 +55,10 @@ void RicImportElementPropertyFeature::onActionTriggered(bool isChecked)
defaultDir = QFileInfo(fileNames.last()).absolutePath();
}
std::vector<QString> fileNamesStd;
std::vector<caf::FilePath> filePaths;
for (QString filename : fileNames)
{
fileNamesStd.push_back(filename);
filePaths.push_back(caf::FilePath(filename));
}
app->setLastUsedDialogDirectory("ELM_PROPS", defaultDir);
@@ -71,7 +71,7 @@ void RicImportElementPropertyFeature::onActionTriggered(bool isChecked)
if (activeGmv->geoMechCase())
{
activeGmv->geoMechCase()->addElementPropertyFiles(fileNamesStd);
activeGmv->geoMechCase()->addElementPropertyFiles(filePaths);
}
}