summaryrefslogtreecommitdiff
path: root/src/controls/MenuBar.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-09-07 14:35:47 +0200
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>2015-09-11 07:15:34 +0000
commit3799188e704e48ff8e9aa728cd76101b15f21fd2 (patch)
tree83c9165bbea1567f5717ce3f7c59c8141f52c99b /src/controls/MenuBar.qml
parent5e252f9b9ceea72fc1acb5fb41b81abc34cab46d (diff)
downloadqtquickcontrols-3799188e704e48ff8e9aa728cd76101b15f21fd2.tar.gz
Menu: Schedule popup deletion when it's about to hide
This leads to serious memory/OpenGL context leaks on Windows. No such thing has been noticed on Linux which may hint to differences in the backend. Task-number: QTBUG-47682 Change-Id: I274ed98db348ffe2c78707f2c92b812f272c2723 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/controls/MenuBar.qml')
-rw-r--r--src/controls/MenuBar.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml
index 0d9f8ee8..be182e29 100644
--- a/src/controls/MenuBar.qml
+++ b/src/controls/MenuBar.qml
@@ -302,7 +302,7 @@ MenuBarPrivate {
anchors.fill: parent
hoverEnabled: Settings.hoverEnabled
- onPositionChanged: updateCurrentItem(mouse, false)
+ onPositionChanged: updateCurrentItem(mouse)
onPressed: {
if (updateCurrentItem(mouse)) {
d.preselectMenuItem = false