diff options
author | Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> | 2016-04-27 13:18:41 -0700 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dedietrich@qt.io> | 2016-05-06 21:25:17 +0000 |
commit | e6c0373421a3239a828969d5c49e5418b1122dd0 (patch) | |
tree | 4f09451cd45ff35ede5dce6098648dda8bfcc613 /header.FDL | |
parent | 939b7bfe66221975d3a12a6d0a6dd14d9ad04344 (diff) |
Cocoa: Clear the backing store pointer when changing window
If the geometry is being changed at some point while showing
the widget after reparenting, we set the Cocoa frame on the
QNSView. This results in Cocoa invalidating the view and
calling drawRect: before we get a chance to flush the backing
store.
This may be an issue if the previous parent toplevel window
has been deleted. In that case, the backing store pointer is
a dangling one, resulting in a crash.
Change-Id: I18b5dd7794a3bde8815daf3f84e4113a37aaea90
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'header.FDL')
0 files changed, 0 insertions, 0 deletions