Native file chooser-Mac OS X: fixed issue arising with OS 10.6

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-08-25 17:01:56 +00:00
parent f64829b7bf
commit 3b4db2357d
1 changed files with 1 additions and 0 deletions

View File

@ -548,6 +548,7 @@ int Fl_Native_File_Chooser::post() {
NSString *fname = nil;
NSString *preset = nil;
NSPopUpButton *popup = nil;
[(NSSavePanel*)_panel setAllowsOtherFileTypes:YES];
if ( !(_options & SAVEAS_CONFIRM) ) {
static FLsaveDelegate *saveDelegate = nil;
if (saveDelegate == nil)saveDelegate = [[FLsaveDelegate alloc] init]; // not to be ever freed