MacOS: fix a small problem where command Quit of the application menu may not work if Fl_Native_File_Chooser is used before any window is shown.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-10-27 15:43:09 +00:00
parent b9d0177bc1
commit 8b93da8f20

View File

@ -568,6 +568,7 @@ int Fl_Native_File_Chooser::post() {
if ( _filt_total == 0 ) { // Make sure they match
_filt_value = 0; // TBD: move to someplace more logical?
}
fl_open_display();
NSAutoreleasePool *localPool;
localPool = [[NSAutoreleasePool alloc] init];
switch (_btype) {