path: root/src
diff options
authorJens Bache-Wiig <>2013-11-18 17:35:18 +0100
committerThe Qt Project <>2013-11-21 07:29:35 +0100
commitcd61eacae12ed89ceb82b59d3813f5c79e778821 (patch)
treee802ea0098e7015c575b43a0afc0a205600f9a5e /src
parenta695371b8faa6a043c304859a298a81c1d408bd0 (diff)
Fix crash regression for ApplicationWindow on Mac
This fixes a recent regression following the integration of change: 7cc1656fef21e6bdc044968a79f0a41155357c29 (Make sure menu bar has a parent window ...) As it now consistently crashes on mac in several of the Qt Quick Controls examples, it is critical that it gets into the release branch. Change-Id: If3db1025229a7f7fd4e7ecc703d5f655db73964d Reviewed-by: Gabriel de Dietrich <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/ b/src/plugins/platforms/cocoa/
index 0fea55ac68..5a8664747e 100644
--- a/src/plugins/platforms/cocoa/
+++ b/src/plugins/platforms/cocoa/
@@ -175,6 +175,7 @@ void QCocoaMenuBar::handleReparent(QWindow *newParentWindow)
if (newParentWindow == NULL) {
m_window = NULL;
} else {
+ newParentWindow->create();
m_window = static_cast<QCocoaWindow*>(newParentWindow->handle());