mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
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:
parent
027c7540a0
commit
cbffe63197
2 changed files with 10 additions and 12 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue