diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2025-01-20 10:20:48 +0100 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2025-01-20 20:45:59 +0100 |
| commit | 1accd2421686b387daa115b3a46974fce0fdb118 (patch) | |
| tree | 735b81161f106b07a8204803ea4c9f947a918e88 /src/corelib/tools/qarraydata.cpp | |
| parent | 6404714183b3fcf93ac27482c5a3193a4f93767d (diff) | |
Avoid dangling d-pointer deref in QWidgetWindow::handleMouseEvent
If you drag-and-drop a OpenGLWidget in Designer, the main window gets
re-created when the OpenGLWidget is instantiated. So in general (in
rare cases), at the end of QWidgetWindow::handleMouseEvent() we might
have a different window, and therefore can't reliably call
QWindowPrivate::maybeSynthesizeContextMenuEvent() without checking for
a valid pointer.
Amends 84a5f50c7766c99f62b22bb4388137e0aa8dd13d
Pick-to: 6.9
Fixes: QTBUG-132912
Change-Id: I7b220b4daceab988aadabf9427ef6b2d5624e00d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
0 files changed, 0 insertions, 0 deletions
