5.6.3 - fixed compilation on XCode 4.6

This commit is contained in:
kleuter 2017-12-04 17:06:58 +01:00
parent 93ca037b13
commit 7c3cf33585

View File

@ -313,7 +313,7 @@ static bool isMouseEvent(NSEvent *ev)
continue; continue;
if ([window conformsToProtocol:@protocol(QNSWindowProtocol)]) { if ([window conformsToProtocol:@protocol(QNSWindowProtocol)]) {
QCocoaWindow *cocoaWindow = static_cast<id<QNSWindowProtocol>>(window).helper.platformWindow; QCocoaWindow *cocoaWindow = static_cast< id<QNSWindowProtocol> >(window).helper.platformWindow;
window.level = notification.name == NSApplicationWillResignActiveNotification ? window.level = notification.name == NSApplicationWillResignActiveNotification ?
NSNormalWindowLevel : cocoaWindow->windowLevel(cocoaWindow->window()->flags()); NSNormalWindowLevel : cocoaWindow->windowLevel(cocoaWindow->window()->flags());
} }