mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:40:48 +00:00
On removal from superview send move to nil window
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4176 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb28b026af
commit
20899174ea
1 changed files with 2 additions and 2 deletions
|
@ -276,9 +276,9 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
||||||
if ([window firstResponder] == self)
|
if ([window firstResponder] == self)
|
||||||
[window makeFirstResponder: window];
|
[window makeFirstResponder: window];
|
||||||
views = [super_view subviews];
|
views = [super_view subviews];
|
||||||
window = nil;
|
|
||||||
super_view = nil;
|
|
||||||
[views removeObjectIdenticalTo: self];
|
[views removeObjectIdenticalTo: self];
|
||||||
|
super_view = nil;
|
||||||
|
[self viewWillMoveToWindow: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) removeFromSuperview
|
- (void) removeFromSuperview
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue