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
}