From 8b93da8f20a2b31f144c476cef0d1b764d6cfea0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 27 Oct 2016 15:43:09 +0000 Subject: [PATCH] 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 --- src/Fl_Native_File_Chooser_MAC.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index 3d810cd60..67e68681d 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -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) {