Avoid crash when project tree files disappear
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22568
This commit is contained in:
@@ -2066,6 +2066,9 @@ void PROJECT_TREE_PANE::updateTreeCache()
|
||||
|
||||
PROJECT_TREE_ITEM* nextItem = GetItemIdData( kid );
|
||||
|
||||
if( !nextItem )
|
||||
continue;
|
||||
|
||||
wxString gitAbsPath = nextItem->GetFileName();
|
||||
#ifdef _WIN32
|
||||
gitAbsPath.Replace( wxS( "\\" ), wxS( "/" ) );
|
||||
|
||||
Reference in New Issue
Block a user