mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 17:17:50 -05:00
#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:
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 ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user