mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT: case name derived from windows path
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user