summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-02-24 13:45:30 +0100
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-02-29 14:36:08 +0000
commitaeb169a48869f4f50237e384e57ccb406228f620 (patch)
tree2e714f6aaecff7f2495a68d4038fcaf44ba746c0 /src/widgets
parent9132d1516af99b3c0c132335756e7f2777ec5e78 (diff)
Cocoa integration - avoid using dangling pointers
While re-parenting a widget on a mouse down, it's possible that NSWindow lives longer than QCocoaWindow (because self.grabbingMouse == YES), on mouse release event self.platformWindow is not nil yet, but is not a valid pointer already. Bail out early before touching it. Change-Id: Iea1025a82386d4b9dc21b3cbd3a5b248b2dd3620 Task-number: QTBUG-42059 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
Diffstat (limited to 'src/widgets')
0 files changed, 0 insertions, 0 deletions