diff options
author | Filipe Azevedo <filipe.azevedo@kdab.com> | 2016-08-01 19:01:03 +0200 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2016-08-22 09:09:25 +0000 |
commit | f44ef9daf9f0f9db6775fdb6d3fc8703b6ce77e4 (patch) | |
tree | 69b454bd7889bcc5f6d7f8a5029399e90a4a1bcb /tests | |
parent | 5bd57528b5cf7b22a81b1195d90b0a364c0428aa (diff) | |
download | qtquickcontrols-f44ef9daf9f0f9db6775fdb6d3fc8703b6ce77e4.tar.gz |
macOS: Fix native dangling menu still visible on screen and crash
If the parent window gets destroyed while a QtQuick Controls menu is open
the macOS native platform menu is not dismissed and you see a blank
gray rectangle without any text.
Also, at this point the QQmlEngine was already destroyed but it's still
present on the call stack, so you get a crash when the stack unwinds to
the original right mouse click that created the context menu.
Change-Id: I638b0de13734815995d2994e6dd6603bcb0ebefc
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions