mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Fixed bug introduced with last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5447 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e77821d7ed
commit
29f428b42c
1 changed files with 6 additions and 2 deletions
|
@ -149,8 +149,9 @@
|
|||
NSMenuItem *anItem = [NSMenuItem new];
|
||||
|
||||
[anItem setTitle: title];
|
||||
[anItem setTarget: [self target]];
|
||||
[anItem setAction: [self action]];
|
||||
// Not bad as defaults:
|
||||
[anItem setTarget: nil];
|
||||
[anItem setAction: NULL];
|
||||
|
||||
[_menu insertItem: anItem atIndex: [_menu numberOfItems]];
|
||||
RELEASE(anItem);
|
||||
|
@ -177,6 +178,9 @@
|
|||
index = [_menu numberOfItems];
|
||||
|
||||
[anItem setTitle: title];
|
||||
// Not bad as defaults:
|
||||
[anItem setTarget: nil];
|
||||
[anItem setAction: NULL];
|
||||
|
||||
[_menu insertItem: anItem atIndex: index];
|
||||
RELEASE(anItem);
|
||||
|
|
Loading…
Reference in a new issue