summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-09-25 11:06:42 +0200
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-09-25 10:35:27 +0000
commit6a9c9710aa7f2b7bd6fd09f27f8bb352d496bc25 (patch)
tree16817a3493a44a45ca2b363f7a0e46b92e5aee3b
parent5796b7885da8f4b9a09d948b782d6353b6eaf715 (diff)
downloadqtquickcontrols-5.5.1.tar.gz
Menu: Fix crash when running the event loop on item triggerv5.5.15.5.1
We are obviously deleting the menu popup contents too early. A fix and ammendment for QTBUG-45182, QTBUG-47682 and QTBUG-48382 is in progress and will be merged in after 5.5.1. This effectively reverts 3799188e704e48ff8e9aa72. Task-number: QTBUG-48382 Change-Id: I38c9e20d710d0bf41810640e5bf83f477abf2934 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
-rw-r--r--src/controls/Menu.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Menu.qml b/src/controls/Menu.qml
index 0eb0c357..7334c28c 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -150,7 +150,7 @@ MenuPrivate {
/*! \internal */
property int __currentIndex: -1
/*! \internal */
- onAboutToHide: { __currentIndex = -1; __destroyMenuPopup() }
+ onAboutToHide: __currentIndex = -1
on__MenuPopupDestroyed: contentLoader.active = false
onPopupVisibleChanged: {
if (__popupVisible)