mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 07:03:25 -06:00
RFT: case name derived from windows path
This commit is contained in:
parent
901d03079a
commit
b8245c310c
@ -206,7 +206,15 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter)
|
||||
if (fileSplitOnDot.size() == 2)
|
||||
{
|
||||
QStringList fileSplitOnBackSlash = fileSplitOnDot[0].split("\\");
|
||||
m_caseName = fileSplitOnBackSlash.back();
|
||||
if (fileSplitOnDot[0] != fileSplitOnBackSlash[0])
|
||||
{
|
||||
m_caseName = fileSplitOnBackSlash.back();
|
||||
}
|
||||
else
|
||||
{
|
||||
QStringList fileSplitOnSlash = fileSplitOnDot[0].split("/");
|
||||
m_caseName = fileSplitOnSlash.back();
|
||||
}
|
||||
|
||||
QString rftFile = fileSplitOnDot[0] + ".RFT";
|
||||
std::string rftFileStdString = rftFile.toStdString();
|
||||
|
Loading…
Reference in New Issue
Block a user