Avoid crash if events happen out of order on project manager start
This commit is contained in:
parent
6b29c346b9
commit
a9ccb0f11e
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue