summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qregexp.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2018-02-20 16:04:56 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2018-03-19 14:38:45 +0000
commiteba1d56fad03198098f3eea353c4b42fac3306a7 (patch)
tree76d6d5ca3d5fa47e76c4d1463d295fb4514a4a7c /src/corelib/tools/qregexp.cpp
parentdae8133ded616c9038407793232ae946fcf93e8c (diff)
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>
Diffstat (limited to 'src/corelib/tools/qregexp.cpp')
0 files changed, 0 insertions, 0 deletions