X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/osx/cocoa/dirdlg.mm?ds=sidebyside diff --git a/src/osx/cocoa/dirdlg.mm b/src/osx/cocoa/dirdlg.mm index 065b554241..7d7dc66a21 100644 --- a/src/osx/cocoa/dirdlg.mm +++ b/src/osx/cocoa/dirdlg.mm @@ -31,6 +31,7 @@ #endif #include "wx/filename.h" +#include "wx/evtloop.h" #include "wx/osx/private.h" @@ -90,6 +91,8 @@ void wxDirDialog::ShowWindowModal() int wxDirDialog::ShowModal() { + wxCFEventLoopPauseIdleEvents pause; + NSOpenPanel *oPanel = [NSOpenPanel openPanel]; [oPanel setCanChooseDirectories:YES]; [oPanel setResolvesAliases:YES];