Removed extra attach.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21142 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-04-22 16:41:17 +00:00
parent 9e92da8d1b
commit e2bd7a4fc5
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-04-22 12:38 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/0Menus/GormMenuEditor.m: [GormMenuEditor pasteInSelection]
removed extra call to attachObject:withParent:.
2005-04-22 12:24 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/0Menus/GormMenuEditor.m: [GormMenuEditor pasteInSelection]

View file

@ -780,13 +780,12 @@ void _attachAll(NSMenu *menu, id document)
{
NSString *title = [item title];
if ([[self _menu] _ownedByPopUp])
if ([edited _ownedByPopUp])
{
[item setOnStateImage: nil];
[item setMixedStateImage: nil];
}
[edited addItem: item];
[document attachObject: item toParent: edited];
}
[edited sizeToFit];
[edited display];