From e8807fd901488044f2707fc89906c0a297c27fbf Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 8 Nov 2017 11:23:03 +0100 Subject: [PATCH] Fix build on macOS < 10.12 Closes #2473 --- src/lib/tools/disablewindowtabbbing.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/tools/disablewindowtabbbing.mm b/src/lib/tools/disablewindowtabbbing.mm index 230db0706..3724ed700 100644 --- a/src/lib/tools/disablewindowtabbbing.mm +++ b/src/lib/tools/disablewindowtabbbing.mm @@ -17,12 +17,15 @@ * along with this program. If not, see . * ============================================================ */ #import +#import // code taken from: https://www.mail-archive.com/interest@qt-project.org/msg23593.html // Disables auto window tabbing where supported, otherwise a no-op. void disableWindowTabbing() { +#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)]) { NSWindow.allowsAutomaticWindowTabbing = NO; } +#endif }