diff --git a/modules/gui/macosx/windows/VLCOpenWindowController.m b/modules/gui/macosx/windows/VLCOpenWindowController.m index a9e361d8ad..f2deb8c5ee 100644 --- a/modules/gui/macosx/windows/VLCOpenWindowController.m +++ b/modules/gui/macosx/windows/VLCOpenWindowController.m @@ -628,7 +628,7 @@ NSString *const VLCOpenTextFieldWasClicked = @"VLCOpenTextFieldWasClicked"; [openPanel setTitle: _NS("Open File")]; [openPanel setPrompt: _NS("Open")]; [openPanel beginSheetModalForWindow:[sender window] completionHandler:^(NSInteger returnCode) { - if (returnCode == NSFileHandlingPanelOKButton) { + if (returnCode == NSModalResponseOK) { self->_filePath = [[[openPanel URLs] firstObject] path]; [self openFilePathChanged: nil]; }