mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure one case is loaded when both SMSPEC and ESMRY is present in same folder
This commit is contained in:
parent
24ccbf395d
commit
fc51bf84a5
@ -70,6 +70,12 @@ std::vector<QString> RiaEclipseFileNameTools::findSummaryFileCandidates()
|
||||
auto smryCandidate = relatedFilePath( EclipseFileType::ECLIPSE_SMSPEC );
|
||||
auto esmryCandidate = relatedFilePath( EclipseFileType::ECLIPSE_ESMRY );
|
||||
|
||||
if ( !smryCandidate.isEmpty() && !esmryCandidate.isEmpty() )
|
||||
{
|
||||
// If both files exist, we prefer the SMSPEC file
|
||||
esmryCandidate = "";
|
||||
}
|
||||
|
||||
return { smryCandidate, esmryCandidate };
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user