Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[qtgui] fix crash when QWindow gets deleted. Fixes JB#42211
Earlier crash fix on commit ad9eb80 caused another: ~QWindow() calls destroy() and if QWindowSystemInterfacePrivate::handleWindowSystemEvent() does asynchronous processing, QGuiApplicationPrivate::focus_window will be already deleted at the time focus change gets handled. Quite likely that focus change signaling isn't really proper with this, but then again it's not crashing and hasn't been proper earlier either.
- Loading branch information