mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9033 Grid Property Calculator: fix incorrect filtering when reloading projects
Fixes #9033.
This commit is contained in:
parent
f50b876c99
commit
5ea621d36f
@ -653,11 +653,6 @@ bool RiaApplication::loadProject( const QString& projectFileName,
|
||||
}
|
||||
}
|
||||
|
||||
for ( auto gridCalculation : m_project->gridCalculationCollection()->calculations() )
|
||||
{
|
||||
gridCalculation->calculate();
|
||||
}
|
||||
|
||||
if ( m_project->viewLinkerCollection() && m_project->viewLinkerCollection()->viewLinker() )
|
||||
{
|
||||
m_project->viewLinkerCollection()->viewLinker()->updateOverrides();
|
||||
@ -713,6 +708,14 @@ bool RiaApplication::loadProject( const QString& projectFileName,
|
||||
// Execute command objects, and release the mutex when the queue is empty
|
||||
executeCommandObjects();
|
||||
|
||||
// Recalculate the results from grid property calculations.
|
||||
// Has to be done late since the results are filtered by view cell visibility
|
||||
for ( auto gridCalculation : m_project->gridCalculationCollection()->calculations() )
|
||||
{
|
||||
gridCalculation->calculate();
|
||||
gridCalculation->updateDependentObjects();
|
||||
}
|
||||
|
||||
RiaLogging::info( QString( "Completed open of project file : '%1'" ).arg( projectFileName ) );
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user