diff --git a/kicad/tree_project_frame.cpp b/kicad/tree_project_frame.cpp index f1ffe704e2..e02b4c5f79 100644 --- a/kicad/tree_project_frame.cpp +++ b/kicad/tree_project_frame.cpp @@ -845,8 +845,8 @@ void TREE_PROJECT_FRAME::OnIdle( wxIdleEvent& aEvent ) { // Activate launches a window which may run the event loop on top of us // and cause OnIdle here to get called again, so be sure to block off the activation condition first - PROJECT_TREE_ITEM* item = m_selectedItem; - m_selectedItem = nullptr; + TREEPROJECT_ITEM* item = m_selectedItem; + m_selectedItem = nullptr; item->Activate( this ); }