#9033 Grid Property Calculator: fix incorrect filtering when reloading projects

Fixes #9033.
This commit is contained in:
Kristian Bendiksen 2022-06-10 10:56:46 +02:00
parent f50b876c99
commit 5ea621d36f

View File

@ -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;