iOS: Guard against displayLayer after platform window is gone
During shutdown the UIView might outlive its QIOSWindow platform window. If we receive displayLayer calls, we need to bail out, to avoid crashing when trying to send the expose event. Pick-to: 6.7 6.6 6.5 Change-Id: I2f36a4dd825e91b348bc57a06e6aa6b1a12fd249 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
781135b0d2
commit
483523ad9f
@ -263,6 +263,9 @@ inline ulong getTimeStamp(UIEvent *event)
|
||||
Q_UNUSED(layer);
|
||||
Q_ASSERT(layer == self.layer);
|
||||
|
||||
if (!self.platformWindow)
|
||||
return;
|
||||
|
||||
[self sendUpdatedExposeEvent];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user