Correction for previous changes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20310 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-11-08 03:19:39 +00:00
parent 169d8c4a56
commit 3976c35f41
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-11-07 22:18 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassInspector.m: [GormClassManager removeAction:]
added code to check for a custom class.
2004-11-07 14:27 Gregory John Casamento <greg_casamento@yahoo.com>
* ClassInformation.plist: Added entry for NSObject.

View file

@ -382,18 +382,18 @@ objectValueForTableColumn: (NSTableColumn *)tc
NSString *className = [self _currentClass];
NSArray *list = [classManager allActionsForClassNamed: className];
BOOL removed = NO;
BOOL isCustom = [classManager isCustomClass: className];
NSString *name = nil;
GormDocument *document = (GormDocument *)[(id <IB>)NSApp activeDocument];
// check the count...
if([classManager isCustomClass: className] ||
[classManager isCategoryForClass: className])
if(isCustom || [classManager isCategoryForClass: className])
{
if([list count] > 0 && i >= 0 && i < [list count])
{
[actionTable deselectAll: self];
name = [list objectAtIndex: i];
if([classManager isAction: name onCategoryForClassNamed: className])
if(isCustom || [classManager isAction: name onCategoryForClassNamed: className])
{
removed = [document
removeConnectionsWithLabel: name