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:
parent
ce02798533
commit
3ad3869ae8
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue