(OSX) Buildfix for pre-OSX 10.6

This commit is contained in:
neville 2016-06-08 17:39:20 +02:00
parent 1cd441b125
commit 817b63be99

View File

@ -33,7 +33,7 @@ static bool ui_browser_window_cocoa_open(ui_browser_window_state_t *state)
if ([panel runModalForDirectory:BOXSTRING(state->startdir) file:nil] != 1) if ([panel runModalForDirectory:BOXSTRING(state->startdir) file:nil] != 1)
return false; return false;
#else #else
[panel setTitle:NSLocalizedString(BOXSTRING(string->title), BOXSTRING("open panel"))]; [panel setTitle:NSLocalizedString(BOXSTRING(state->title), BOXSTRING("open panel"))];
[panel setDirectory:BOXSTRING(state->startdir)]; [panel setDirectory:BOXSTRING(state->startdir)];
[panel setCanChooseDirectories:NO]; [panel setCanChooseDirectories:NO];
[panel setCanChooseFiles:YES]; [panel setCanChooseFiles:YES];