Fix undef subdir macro in tree_project

This commit is contained in:
Seth Hillbrand 2019-09-05 09:57:30 -07:00
parent f3f0e20a67
commit c0b4e10f87
1 changed files with 7 additions and 0 deletions

View File

@ -730,6 +730,10 @@ void TREE_PROJECT_FRAME::OnExpand( wxTreeEvent& Event )
wxTreeItemIdValue cookie;
wxTreeItemId kid = m_TreeProject->GetFirstChild( itemId, cookie );
#ifndef __WINDOWS__
bool subdir_populated = false;
#endif
for( ; kid.IsOk(); kid = m_TreeProject->GetNextChild( itemId, cookie ) )
{
TREEPROJECT_ITEM* itemData = GetItemIdData( kid );
@ -757,6 +761,9 @@ void TREE_PROJECT_FRAME::OnExpand( wxTreeEvent& Event )
}
itemData->SetPopulated( true ); // set state to populated
#ifndef __WINDOWS__
subdir_populated = true;
#endif
}
// Sort filenames by alphabetic order