#14761 Find summary data files when file name contains multiple dots

QFileInfo::baseName() truncates at the first dot, so the ESMRY and h5 files were not found for realizations like CASE.V2-0.SMSPEC. Without an UNSMRY file the realization was opened as an empty summary case. Use completeBaseName() to strip only the extension.
This commit is contained in:
Magne Sjaastad committed 2026-09-16 05:06:47 -04:00
1 parent 3414fee046
commit cfb9e5765e
4 files changed
+55 -4

No files matched your search

@@ -61,7 +61,7 @@ bool RifOpmHdf5Summary::open( const QString& headerFileName, bool includeRestart
}
QFileInfo fi( headerFileName );
QString hdfFileName = fi.absolutePath() + "/" + fi.baseName() + ".h5";
QString hdfFileName = fi.absolutePath() + "/" + fi.completeBaseName() + ".h5";
if ( !QFile::exists( hdfFileName ) )
{