Prevent modal deadlock by using QuasiModal mode.

Fixes https://gitlab.com/kicad/code/kicad/issues/6779
This commit is contained in:
Jeff Young 2020-12-17 23:51:24 +00:00
parent bb232e6ac6
commit c875efb635
1 changed files with 3 additions and 3 deletions

View File

@ -1240,7 +1240,7 @@ int SCH_EDIT_TOOL::ChangeSymbols( const TOOL_EVENT& aEvent )
DIALOG_CHANGE_SYMBOLS dlg( m_frame, selectedSymbol, mode ); DIALOG_CHANGE_SYMBOLS dlg( m_frame, selectedSymbol, mode );
dlg.ShowModal(); dlg.ShowQuasiModal();
return 0; return 0;
} }
@ -1369,12 +1369,12 @@ int SCH_EDIT_TOOL::Properties( const TOOL_EVENT& aEvent )
else if( retval == SYMBOL_PROPS_WANT_UPDATE_SYMBOL ) else if( retval == SYMBOL_PROPS_WANT_UPDATE_SYMBOL )
{ {
DIALOG_CHANGE_SYMBOLS dlg( m_frame, component, DIALOG_CHANGE_SYMBOLS::MODE::UPDATE ); DIALOG_CHANGE_SYMBOLS dlg( m_frame, component, DIALOG_CHANGE_SYMBOLS::MODE::UPDATE );
dlg.ShowModal(); dlg.ShowQuasiModal();
} }
else if( retval == SYMBOL_PROPS_WANT_EXCHANGE_SYMBOL ) else if( retval == SYMBOL_PROPS_WANT_EXCHANGE_SYMBOL )
{ {
DIALOG_CHANGE_SYMBOLS dlg( m_frame, component, DIALOG_CHANGE_SYMBOLS::MODE::CHANGE ); DIALOG_CHANGE_SYMBOLS dlg( m_frame, component, DIALOG_CHANGE_SYMBOLS::MODE::CHANGE );
dlg.ShowModal(); dlg.ShowQuasiModal();
} }
} }
break; break;