mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Close project if cancelling well path loading.
This commit is contained in:
@@ -548,7 +548,15 @@ bool RiaApplication::loadProject( const QString& projectFileName, ProjectLoadAct
|
||||
}
|
||||
|
||||
// Initialize well paths
|
||||
oilField->wellPathCollection->loadDataAndUpdate();
|
||||
if ( !oilField->wellPathCollection->loadDataAndUpdate() )
|
||||
{
|
||||
// Opening well path was cancelled or failed: close project.
|
||||
closeProject();
|
||||
m_project = std::make_unique<RimProject>();
|
||||
onProjectOpened();
|
||||
return true;
|
||||
}
|
||||
|
||||
oilField->ensembleWellLogsCollection->loadDataAndUpdate();
|
||||
oilField->vfpDataCollection->loadDataAndUpdate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user