Make sure OSX modal event loops end.

WindowModal works fine, but nested AppModals never get the inner
eventloop cancelled.

Fixes: lp:1718079
* https://bugs.launchpad.net/kicad/+bug/1718079
This commit is contained in:
Jeff Young 2018-01-26 16:44:17 +00:00 committed by jean-pierre charras
parent ce02798533
commit 3ad3869ae8
1 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,11 @@ bool DIALOG_SHIM::Show( bool show )
EDA_RECT r( wxDialog::GetPosition(), wxDialog::GetSize() );
class_map[ hash_key ] = r;
#ifdef __WXMAC__
if ( m_eventLoop )
m_eventLoop->Exit( GetReturnCode() ); // Needed for APP-MODAL dlgs on OSX
#endif
ret = wxDialog::Show( show );
}