mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2349 Elm Props: Use caf::FilePath instead of QString
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user