Early exit when data fails to load

p4#: 20405
This commit is contained in:
Magne Sjaastad 2013-02-07 10:12:59 +01:00
parent dbeb61bd53
commit 5e38c909cf

View File

@ -680,6 +680,8 @@ void RimReservoirView::loadDataAndUpdate()
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());
m_reservoir = NULL;
return;
}
else
{