fixed warnings on macosx

This commit is contained in:
oy 2017-09-17 18:50:06 +02:00
parent ea6d380f7f
commit 7a8687a618

View file

@ -58,10 +58,10 @@ void runServer()
NSOpenPanel* openDlg = [NSOpenPanel openPanel];
[openDlg setCanChooseFiles:YES];
if([openDlg runModalForDirectory:nil file:nil] != NSOKButton)
if([openDlg runModal] != NSOKButton)
return;
NSArray* filenames = [openDlg filenames];
NSArray* filenames = [openDlg URLs];
if([filenames count] != 1)
return;