Keep filter attached to an Fl_Native-File_Chooser after it's closed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-09-05 16:52:16 +00:00
parent bb9dd96ad3
commit 19b3e33944

View File

@ -120,8 +120,6 @@ int Fl_Native_File_Chooser::show() {
// POST BROWSER
int err = post();
_filt_total = 0;
return(err);
}
@ -600,6 +598,7 @@ int Fl_Native_File_Chooser::post() {
}
if (_directory && !dir) dir = [[NSString alloc] initWithUTF8String:_directory];
if (_filt_total) {
if (_filt_value >= _filt_total) _filt_value = _filt_total - 1;
char *t = prepareMacFilter(_filt_total, _filter, _filt_patt);
popup = createPopupAccessory((NSSavePanel*)_panel, t, [[(NSSavePanel*)_panel nameFieldLabel] UTF8String], _filt_value);
delete[] t;