Project manager: Restore possibility of opening multiple dirs at once

Fixes https://gitlab.com/kicad/code/kicad/issues/5896
This commit is contained in:
Mikolaj Wielgus 2021-01-10 14:52:56 +01:00 committed by Seth Hillbrand
parent 8ee324b1a9
commit fc7f1d1d86
1 changed files with 1 additions and 2 deletions

View File

@ -631,7 +631,6 @@ void PROJECT_TREE_PANE::onRight( wxTreeEvent& Event )
{
can_switch_to_project = false;
can_create_new_directory = false;
can_open_this_directory = false;
can_rename = false;
can_print = false;
}
@ -657,7 +656,7 @@ void PROJECT_TREE_PANE::onRight( wxTreeEvent& Event )
can_rename = false;
can_print = false;
if( curr_item == m_TreeProject->GetRootItem() )
if( item->GetId() == m_TreeProject->GetRootItem() )
{
can_switch_to_project = false;
can_delete = false;