From 4567268d2a72a88ea812aa685333e7eee113ca86 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 27 Oct 2016 16:41:05 +0000 Subject: 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-porting@12056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Native_File_Chooser_MAC.mm | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Fl_Native_File_Chooser_MAC.mm') diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index 7d03fac36..bb09a1789 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -628,6 +628,7 @@ int Fl_Quartz_Native_File_Chooser_Driver::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) { -- cgit v1.2.3