mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed warnings on macosx
This commit is contained in:
parent
ea6d380f7f
commit
7a8687a618
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue