#2854 UNRST and EGRID file matching confused by . in basename

* Need to send in QFileInfo::completeBaseName() rather than just baseName()
* The change will cause libECL to match only files where the base name is everything except what is after the LAST  dot.
This commit is contained in:
Gaute Lindkvist 2018-05-14 09:27:38 +02:00
parent 17226dabbc
commit 090a79cf90

View File

@ -274,7 +274,7 @@ bool RifEclipseOutputFileTools::findSiblingFilesWithSameBaseName(const QString&
QString filePath = QFileInfo(fullPathFileName).absoluteFilePath();
filePath = QFileInfo(filePath).path();
QString fileNameBase = QFileInfo(fullPathFileName).baseName();
QString fileNameBase = QFileInfo(fullPathFileName).completeBaseName();
stringlist_type* eclipseFiles = stringlist_alloc_new();
ecl_util_select_filelist(RiaStringEncodingTools::toNativeEncoded(filePath).data(), RiaStringEncodingTools::toNativeEncoded(fileNameBase).data(), ECL_OTHER_FILE, false, eclipseFiles);