mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
parent
17226dabbc
commit
090a79cf90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user