Corrected problem selecting NSObject.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21464 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-13 12:58:04 +00:00
parent 9b1d69cbc7
commit 37914f9227
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-13 09:01 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m: Corrected problem selecting NSObject
in browser when it's selected in the outline.
2005-07-13 02:17 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormClassEditor.m: Changed code in selectClass:editClass:

View file

@ -292,7 +292,8 @@ NSString *GormSwitchViewPreferencesNotification = @"GormSwitchViewPreferencesNot
// select class in browser...
subClassesArray = [classManager allSuperClassesOf: className];
if ((subClassesArray == nil) || ([subClassesArray count] == 0))
if ((subClassesArray == nil || [subClassesArray count] == 0) &&
[classManager isRootClass: className] == NO)
{
return;
}