Commit 7ffcf328 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig
Browse files

Remove QNSView from superview in ~QCocoaWindow()


A QNSView without a corresponding live QCocoaWindow
object is not in a valid state. Previously we would
call removeFromSuperview for child QWindows to avoid
having Cocoa send messages to the now invalid QNSView.

Do this for QWindows embedded in native Cocoa
hierarchies as well.

Change-Id: I49c6daef8ed061b3f40138fe9b4ce6be190f2fd0
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Reviewed-by: default avatarTimur Pocheptsov <Timur.Pocheptsov@digia.com>
parent 406934a6
No related merge requests found
Showing with 1 addition and 1 deletion
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment