mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Early exit when data fails to load
p4#: 20405
This commit is contained in:
parent
dbeb61bd53
commit
5e38c909cf
@ -680,6 +680,8 @@ void RimReservoirView::loadDataAndUpdate()
|
|||||||
if (!m_reservoir->openEclipseGridFile())
|
if (!m_reservoir->openEclipseGridFile())
|
||||||
{
|
{
|
||||||
QMessageBox::warning(RIMainWindow::instance(), "Error when opening project file", "Could not open the Eclipse Grid file (EGRID/GRID): \n"+ m_reservoir->caseName());
|
QMessageBox::warning(RIMainWindow::instance(), "Error when opening project file", "Could not open the Eclipse Grid file (EGRID/GRID): \n"+ m_reservoir->caseName());
|
||||||
|
m_reservoir = NULL;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user