From: Richard Moe Gustavsen Date: Wed, 3 Aug 2011 13:08:38 +0000 (+0200) Subject: Mac: fix crash when creating a new window X-Git-Tag: qt-v5.0.0-alpha1~3626^2~232 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b126d321e3e25c44328290273a8af0190af5507;p=profile%2Fivi%2Fqtbase.git Mac: fix crash when creating a new window Change-Id: I90f7bff954f3710f48d7416287bb5debafa94447 Reviewed-on: http://codereview.qt.nokia.com/2570 Reviewed-by: Qt Sanity Bot Reviewed-by: Richard Moe Gustavsen --- diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm index 550c429..492a43a 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.mm +++ b/src/plugins/platforms/cocoa/qcocoawindow.mm @@ -63,7 +63,6 @@ QCocoaWindow::QCocoaWindow(QWindow *tlw) QNSWindowDelegate *delegate = [[QNSWindowDelegate alloc] initWithQCocoaWindow:this]; [m_nsWindow setDelegate:delegate]; - [m_nsWindow setAcceptsMouseMovedEvents:YES]; m_contentView = [[QNSView alloc] initWithQWindow:tlw]; @@ -317,9 +316,8 @@ NSWindow * QCocoaWindow::createWindow() window = panel; break; } - default: - m_nsWindow = [[NSWindow alloc] initWithContentRect:frame + window = [[NSWindow alloc] initWithContentRect:frame styleMask:m_windowAttributes backing:NSBackingStoreBuffered defer:YES];