Commit 7dc08c87 authored by Maciej Suminski's avatar Maciej Suminski

Fixed switching back to selection tool using the right toolbar buttons in pcbnew (GAL).

parent 6fa2f060
...@@ -1374,7 +1374,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent ) ...@@ -1374,7 +1374,7 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
{ {
std::string actionName = COMMON_ACTIONS::TranslateLegacyId( id ); std::string actionName = COMMON_ACTIONS::TranslateLegacyId( id );
if( !actionName.empty() ) if( !actionName.empty() || id == ID_NO_TOOL_SELECTED )
{ {
const int MAX_TRIALS = 10; const int MAX_TRIALS = 10;
int trials = 0; int trials = 0;
...@@ -1389,7 +1389,8 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent ) ...@@ -1389,7 +1389,8 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
m_toolManager.ProcessEvent( cancel ); m_toolManager.ProcessEvent( cancel );
} }
m_toolManager.RunAction( actionName ); if( !actionName.empty() )
m_toolManager.RunAction( actionName );
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment