diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-04-20 16:51:31 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-04-21 11:09:59 +0000 |
commit | 0c9e2eae483dc777b9f53819d23805abc80e51d8 (patch) | |
tree | 250d737f0a9e73dc9aa733711d3a34cec502eacb /src/webengine/render_widget_host_view_qt_delegate_quick.cpp | |
parent | f88200c6b44a5e68f7d9fabde9ac58c86728acb4 (diff) |
Fix crash on macOS when closing last tab of a window
Because of weird interaction between deleteLater(),
Qt::WA_DeleteOnClose, and QQuickRenderControlPrivate::windowDestroyed()
which executes all the deferred deletions at a bad time, there were
some use-after-free crashes.
The workaround is not to close the window when the last tab is closed,
but rather create a new tab, like the behavior was on non-macOS
platforms.
Task-number: QTBUG-58982
Change-Id: I00295838c298af382cac78bb22c47d6de60e7755
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webengine/render_widget_host_view_qt_delegate_quick.cpp')
0 files changed, 0 insertions, 0 deletions