mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 07:00:37 +00:00
Retaining _original_nextKeyView to prevent crash
This commit is contained in:
parent
192c121a9d
commit
64e52ddbf9
1 changed files with 3 additions and 1 deletions
|
@ -78,6 +78,7 @@
|
|||
ASSIGN(_items, [NSMutableArray array]);
|
||||
ASSIGN(_font, [NSFont systemFontOfSize: 0]);
|
||||
_selected = nil;
|
||||
_original_nextKeyView = nil;
|
||||
//_truncated_label = NO;
|
||||
}
|
||||
|
||||
|
@ -738,7 +739,8 @@
|
|||
|
||||
- (void) setNextKeyView: (NSView *)nextKeyView
|
||||
{
|
||||
_original_nextKeyView = nextKeyView;
|
||||
[_original_nextKeyView autorelease];
|
||||
_original_nextKeyView = [nextKeyView retain];
|
||||
if (_selected)
|
||||
{
|
||||
[[_selected _lastKeyView] setNextKeyView: nextKeyView];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue