mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:10:38 +00:00
Fix bug where NSView's -dealloc could break the key view chain.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29081 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ef0b67bc70
commit
0840e3b3dc
2 changed files with 6 additions and 1 deletions
|
@ -583,7 +583,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
* First we do the obvious stuff using the standard methods.
|
||||
*/
|
||||
[self setNextKeyView: nil];
|
||||
[[self previousKeyView] setNextKeyView: nil];
|
||||
tmp = [self previousKeyView];
|
||||
if ([tmp nextKeyView] == self)
|
||||
[tmp setNextKeyView: nil];
|
||||
|
||||
/*
|
||||
* Now, we locate any remaining cases where a view has us as its next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue