mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1214 Use last imported grid file location as fallback path
This commit is contained in:
parent
4ff12a4999
commit
fa0e0d32ef
@ -812,16 +812,19 @@ QString RiaApplication::createAbsolutePathFromProjectRelativePath(QString projec
|
||||
return projectRelativePath;
|
||||
}
|
||||
|
||||
QString absolutePath;
|
||||
if (m_project && !m_project->fileName().isEmpty())
|
||||
{
|
||||
QString absoluteProjectPath = QFileInfo(m_project->fileName()).absolutePath();
|
||||
QDir projectDir(absoluteProjectPath);
|
||||
return projectDir.absoluteFilePath(projectRelativePath);
|
||||
absolutePath = QFileInfo(m_project->fileName()).absolutePath();
|
||||
}
|
||||
else
|
||||
{
|
||||
return projectRelativePath;
|
||||
absolutePath = this->lastUsedDialogDirectory("BINARY_GRID");
|
||||
}
|
||||
|
||||
QDir projectDir(absolutePath);
|
||||
|
||||
return projectDir.absoluteFilePath(projectRelativePath);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user