mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't assume a tree root.
Fixes KICAD-Y72.
This commit is contained in:
parent
bf21edb7ce
commit
6c6c02a329
@ -1143,7 +1143,7 @@ void PROJECT_TREE_PANE::onIdle( wxIdleEvent& aEvent )
|
||||
FileWatcherReset();
|
||||
}
|
||||
|
||||
if( m_selectedItem != nullptr )
|
||||
if( m_selectedItem != nullptr && m_TreeProject->GetRootItem().IsOk() )
|
||||
{
|
||||
// Make sure m_selectedItem still exists in the tree before activating it.
|
||||
std::vector<wxTreeItemId> validItemIds;
|
||||
|
Loading…
x
Reference in New Issue
Block a user