diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-12-05 12:24:07 +0100 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-12-06 12:53:03 +0100 |
commit | 7c0833f4bc22d2d947c793f0711e3f1e1a09012c (patch) | |
tree | a3b5e8060c5b23634503b3400001b391ccfda85f | |
parent | d0137d3c48882a6f52de9fab93c3b02c0cff8282 (diff) | |
download | qtwayland-7c0833f4bc22d2d947c793f0711e3f1e1a09012c.tar.gz |
Client: Always close popups when hiding a window
It's not just popups that may have popups open on them. Always close open
popups when hiding a window to prevent dangling pointers.
[ChangeLog][QPA plugin] Fixed a crash when re-showing a popup after hiding its
parent.
Fixes: QTBUG-80562
Change-Id: I7cdac5c7a30e0add5ebf00259401e4d74626ce96
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
-rw-r--r-- | src/client/qwaylandwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 950486c0..0df99d9f 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -426,8 +426,7 @@ void QWaylandWindow::setVisible(bool visible) // QWaylandShmBackingStore::beginPaint(). } else { sendExposeEvent(QRect()); - if (window()->type() == Qt::Popup) - closePopups(this); + closePopups(this); reset(); } } |