Avoid crash if events happen out of order on project manager start

This commit is contained in:
Jon Evans 2023-10-27 12:55:35 -04:00
parent 6b29c346b9
commit a9ccb0f11e
1 changed files with 3 additions and 0 deletions

View File

@ -1827,6 +1827,9 @@ void PROJECT_TREE_PANE::updateGitStatusIcons()
if( ADVANCED_CFG::GetCfg().m_EnableGit == false )
return;
if( !m_TreeProject )
return;
wxTimeSpan timeSinceLastUpdate = wxDateTime::Now() - m_lastGitStatusUpdate;
if( timeSinceLastUpdate.Abs() < wxTimeSpan::Seconds( 2 ) )