Improvement on previous correction.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20497 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-28 13:35:52 +00:00
parent 027c7540a0
commit cbffe63197
2 changed files with 10 additions and 12 deletions

View file

@ -1,3 +1,8 @@
2004-12-28 08:38 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/0Menus/GormMenuEditor.m: Improvement on previous
correction.
2004-12-27 22:02 Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/0Menus/GormMenuEditor.m: Correction for Bug#11410.

View file

@ -780,20 +780,13 @@ void _attachAll(NSMenu *menu, id document)
{
NSString *title = [item title];
if ([edited indexOfItemWithTitle: title] == -1)
if ([[self _menu] _ownedByPopUp])
{
if ([[self _menu] _ownedByPopUp])
{
[item setOnStateImage: nil];
[item setMixedStateImage: nil];
}
[edited addItem: item];
[document attachObject: item toParent: [self _menu]];
}
else
{
NSBeep(); // warn the user about pasting duplicates.
[item setOnStateImage: nil];
[item setMixedStateImage: nil];
}
[edited addItem: item];
[document attachObject: item toParent: [self _menu]];
}
[edited sizeToFit];
[edited display];