summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-08-03 15:08:38 +0200
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-08-03 15:26:05 +0200
commit4b126d321e3e25c44328290273a8af0190af5507 (patch)
treed11d70f0597c08036e13fb85b17a36a545ef3859
parent37edacb7109ee1b81f4106e177913f23d86b47a3 (diff)
Mac: fix crash when creating a new window
Change-Id: I90f7bff954f3710f48d7416287bb5debafa94447 Reviewed-on: http://codereview.qt.nokia.com/2570 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index 550c429179..492a43aec4 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];