Browse Source

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
7.0
Seth Hillbrand 3 years ago
parent
commit
f78671fc2e
  1. 4
      eeschema/tools/sch_drawing_tools.cpp

4
eeschema/tools/sch_drawing_tools.cpp

@ -1581,7 +1581,9 @@ int SCH_DRAWING_TOOLS::DrawShape( const TOOL_EVENT& aEvent )
SCH_TEXTBOX* textbox = static_cast<SCH_TEXTBOX*>( item );
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();
continue;

Loading…
Cancel
Save