mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Close project if cancelling well path loading.
This commit is contained in:
1 parent
9bea739252
commit
b324fdb26b
4 files changed
+15
-4
No files matched your search
@@ -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