summaryrefslogtreecommitdiff
path: root/src/extras
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-17 14:04:59 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-17 15:46:14 +0000
commit61db1507f30082c661c46410115ca74f74842ca7 (patch)
tree453a3ac408f8eeda25c3d9560b723c1ec3204f86 /src/extras
parent0f3f31334485dab7ff21a01c14f9411c05901f2b (diff)
downloadqtquickcontrols-61db1507f30082c661c46410115ca74f74842ca7.tar.gz
Fix proxy menu crash
Mobile-centric ApplicationWindowStyle implementations (Flat & Android) use a proxy menu to morph menubar items into a single menu button. The items are owned by the menubar and must not be deleted by the proxy menu. Otherwise, depending on the destruction order, the items would get deleted twice. Change-Id: I92d0c45fc3274574fd1edf34d8d3d081990f2727 Task-number: QTBUG-48927 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/extras')
-rw-r--r--src/extras/Styles/Flat/ApplicationWindowStyle.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extras/Styles/Flat/ApplicationWindowStyle.qml b/src/extras/Styles/Flat/ApplicationWindowStyle.qml
index 248e39d4..db714889 100644
--- a/src/extras/Styles/Flat/ApplicationWindowStyle.qml
+++ b/src/extras/Styles/Flat/ApplicationWindowStyle.qml
@@ -96,6 +96,7 @@ Base.ApplicationWindowStyle {
Menu {
id: proxyMenu
+ __isProxy: true
items: control.menuBar ? control.menuBar.menus : []
}