Go to file
Morten Johan Sørvig eba1d56fad Cocoa: Fix crash in currentModalSession()
Add null-pointer checks to QCocoaEventDispatcher::
currentModalSession():

- window->handle() may return nullptr if the window
has been destroyed.

- We call beginModalSessionForWindow, which processes
events. This can potentially destroy or delete the
current window; pointers to it must be checked again.

This also has the effect that currentModalSessionCached
is not set to a session that does not have a window,
also prevents clearing the cleanupModalSessionsNeeded
flag for such sessions.

Task-number: QTBUG-66536
Change-Id: Ie055933c872a8ede3c938882fb2d4f7cf8ff3c81
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2018-03-19 14:38:45 +00:00
bin syncqt: remove 'descend' parameter from findFiles() 2018-02-28 18:15:56 +00:00
config.tests Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
dist Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
doc Doc: Complete Dynamic Layouts Example 2018-03-14 12:44:20 +00:00
examples Merge remote-tracking branch 'origin/5.11' into dev 2018-03-18 01:00:11 +01:00
lib
mkspecs macOS: Explicitly link to debug version of framework when needed 2018-03-16 10:30:15 +00:00
qmake Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
src Cocoa: Fix crash in currentModalSession() 2018-03-19 14:38:45 +00:00
tests Stabilize tst_qgraphicsitem and tst_qgraphicsview 2018-03-19 14:38:23 +00:00
util Add a note to the CLDR-munging scripts about updating the attribution 2018-02-17 22:22:33 +00:00
.gitattributes
.gitignore gitignore: don't ignore Info.plist templates for libraries 2017-11-23 07:07:48 +00:00
.qmake.conf Bump version 2018-02-20 19:53:08 +01:00
.tag
config_help.txt xcb: re-factor QXcbKeyboard::updateKeymap() to remove various fallbacks 2018-02-24 12:15:08 +00:00
configure Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00
configure.bat configure: Prefer cl.exe over clang-cl.exe 2018-01-04 21:22:42 +00:00
configure.json Merge remote-tracking branch 'origin/5.11' into dev 2018-02-23 09:27:52 +01:00
configure.pri configure: introduce 'subarch' term to expression evaluator 2018-02-22 21:39:36 +00:00
header.BSD
header.COMM
header.FDL
header.GPL
header.GPL-EXCEPT
header.LGPL
header.LGPL3
header.LGPL3-COMM
header.LGPL-NOGPL2
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.GPLv3
LICENSE.LGPL3
LICENSE.LGPLv3
LICENSE.LGPLv21
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro
sync.profile Add support for Windows UI Automation 2017-11-14 23:31:04 +00:00