Commit 0c9e2eae authored by Alexandru Croitor's avatar Alexandru Croitor
Browse files

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: default avatarMichal Klocek <michal.klocek@qt.io>
parent f88200c6
Showing with 1 addition and 5 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment