GUI: use newer define for OS X 10.10+

This commit is contained in:
Pawel Kolodziejski 2014-12-05 19:45:10 +01:00
parent be489328dd
commit 9649e919e3

View File

@ -154,7 +154,11 @@ int BrowserDialog::runModal() {
[showHiddenFilesButton setAction:@selector(showHiddenFiles:)];
}
#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1090
if ([panel runModal] == NSOKButton) {
#else
if ([panel runModal] == NSModalResponseOK) {
#endif
NSURL *url = [panel URL];
if ([url isFileURL]) {
const char *filename = [[url path] UTF8String];