Make textbox placement modal

Placing a symbol from symbol editor starts the TwoClickPlace in a
different context.  We need to prevent multiple contexts of the same
tool

Fixes https://gitlab.com/kicad/code/kicad/issues/11891
This commit is contained in:
Seth Hillbrand 2022-07-19 09:19:38 -07:00
parent 45393f228a
commit f78671fc2e
1 changed files with 3 additions and 1 deletions

View File

@ -1581,7 +1581,9 @@ int SCH_DRAWING_TOOLS::DrawShape( const TOOL_EVENT& aEvent )
SCH_TEXTBOX* textbox = static_cast<SCH_TEXTBOX*>( item ); SCH_TEXTBOX* textbox = static_cast<SCH_TEXTBOX*>( item );
DIALOG_TEXT_PROPERTIES dlg( m_frame, textbox ); DIALOG_TEXT_PROPERTIES dlg( m_frame, textbox );
if( dlg.ShowQuasiModal() != wxID_OK ) // This is modal not quasi to protect against place symbol calls starting
// TwoClickPlace wait routines in the middle
if( dlg.ShowModal() != wxID_OK )
{ {
cleanup(); cleanup();
continue; continue;