Skip to content

Commit

Permalink
GUI: use newer define for OS X 10.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
aquadran committed Dec 5, 2014
1 parent be48932 commit 9649e91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/browser_osx.mm
Expand Up @@ -154,7 +154,11 @@ - (IBAction) showHiddenFiles : (id) sender {
[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];
Expand Down

0 comments on commit 9649e91

Please sign in to comment.