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:
@@ -970,6 +970,11 @@ bool RiaApplication::openInputEclipseCaseFromFileNames(const QStringList& fileNa
|
|||||||
|
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(riv->cellResult());
|
RiuMainWindow::instance()->selectAsCurrentItem(riv->cellResult());
|
||||||
|
|
||||||
|
if (fileNames.size() == 1)
|
||||||
|
{
|
||||||
|
addToRecentFiles(fileNames[0]);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2005,6 +2010,10 @@ bool RiaApplication::openFile(const QString& fileName)
|
|||||||
{
|
{
|
||||||
loadingSucceded = openEclipseCaseFromFile(fileName);
|
loadingSucceded = openEclipseCaseFromFile(fileName);
|
||||||
}
|
}
|
||||||
|
else if (fileName.contains(".grdecl", Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
|
loadingSucceded = openInputEclipseCaseFromFileNames(QStringList(fileName));
|
||||||
|
}
|
||||||
else if (fileName.contains(".odb", Qt::CaseInsensitive))
|
else if (fileName.contains(".odb", Qt::CaseInsensitive))
|
||||||
{
|
{
|
||||||
loadingSucceded = openOdbCaseFromFile(fileName);
|
loadingSucceded = openOdbCaseFromFile(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user