mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Guard recursive updates if NNC data import is disabled
Import of NNC data can be turned off in Preferences. If this is off, loading of projects using NNC data can enter a recursive update loop.
This commit is contained in:
@@ -201,6 +201,9 @@ bool RigNNCData::ensureAllConnectionDataIsProcessed()
|
||||
{
|
||||
if ( m_haveGeneratedConnections ) return false;
|
||||
|
||||
// Return false if we have no data to process to avoid recursive updates in consuming code
|
||||
if ( !m_mainGrid ) return false;
|
||||
|
||||
if ( m_mainGrid )
|
||||
{
|
||||
caf::ProgressInfo progressInfo( 3, "Computing NNC Data" );
|
||||
|
||||
Reference in New Issue
Block a user