Correction for problem loading gmodels.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20478 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-23 11:03:45 +00:00
parent 56ace42056
commit 8ece5d7b6e
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2004-12-23 06:03 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassInspector.m: Fix for issue when loading from gmodel.
Corrected _refreshView: and searchForClass: so that if list is nil,
the selection isn't set.
* Gorm.spec.in: Minor correction.
2004-12-19 09:05 Gregory John Casamento <greg_casamento@yahoo.com>
* GormInspectorsManager.m: Added [super init] call to

View file

@ -6,7 +6,7 @@ Source: ftp://ftp.gnustep.org/pub/gnustep/dev-apps/%{gs_name}-%{gs_version}.tar.
Requires: gnustep-gui
%description
Gorm is an acronym for GNUstep/Graphic Object Relationship modeler.
Gorm is an acronym for GNUstep/Graphical Object Relationship Modeler.
It is a clone of the NeXTstep `Interface Builder' application for GNUstep.
With Gorm, a developer can build an interface very quickly and easily with
no code.

View file

@ -334,7 +334,7 @@ objectValueForTableColumn: (NSTableColumn *)tc
[classField setBackgroundColor: ((isEditable && !isFirstResponder)?[NSColor whiteColor]:[NSColor lightGrayColor])];
// select the parent class
if(index != NSNotFound)
if(index != NSNotFound && list != nil)
{
[parentClass selectRow: index byExtendingSelection: NO];
[parentClass scrollRowToVisible: index];
@ -460,7 +460,8 @@ objectValueForTableColumn: (NSTableColumn *)tc
int index = [list indexOfObject: stringValue];
NSLog(@"Search... %@",[searchText stringValue]);
if(index != NSNotFound && [stringValue isEqualToString: @"FirstResponder"] == NO)
if(index != NSNotFound && list != nil &&
[stringValue isEqualToString: @"FirstResponder"] == NO)
{
// select the parent class
[parentClass selectRow: index byExtendingSelection: NO];