mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Eclipse Input Data : Added input case to recent files list
This commit is contained in:
parent
aa061a0725
commit
b5f7da628d
@ -970,6 +970,11 @@ bool RiaApplication::openInputEclipseCaseFromFileNames(const QStringList& fileNa
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(riv->cellResult());
|
||||
|
||||
if (fileNames.size() == 1)
|
||||
{
|
||||
addToRecentFiles(fileNames[0]);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -2005,6 +2010,10 @@ bool RiaApplication::openFile(const QString& fileName)
|
||||
{
|
||||
loadingSucceded = openEclipseCaseFromFile(fileName);
|
||||
}
|
||||
else if (fileName.contains(".grdecl", Qt::CaseInsensitive))
|
||||
{
|
||||
loadingSucceded = openInputEclipseCaseFromFileNames(QStringList(fileName));
|
||||
}
|
||||
else if (fileName.contains(".odb", Qt::CaseInsensitive))
|
||||
{
|
||||
loadingSucceded = openOdbCaseFromFile(fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user