mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Corrected bug which was causing a crash after attempting to add to a class which cannot be added to.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17934 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f9a6d82c8f
commit
d8c22f676a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-10-19 23:12 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormOutlineView.m: Corrected issue in addAttributeToClass which
|
||||
was adding to the total line count before validating that the item
|
||||
was added successfully.
|
||||
|
||||
2003-10-19 01:00 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/0Menus/GormMenuInspectors.m: setObject fix for
|
||||
|
|
|
@ -182,10 +182,10 @@ static NSColor *darkGreyBlueColor = nil;
|
|||
NSString *name = nil;
|
||||
|
||||
GormOutletActionHolder *holder = [[GormOutletActionHolder alloc] init];
|
||||
_numberOfRows += 1;
|
||||
name = [_dataSource outlineView: self addNewActionForClass: _itemBeingEdited];
|
||||
if (name != nil)
|
||||
{
|
||||
_numberOfRows += 1;
|
||||
[holder setName: name];
|
||||
insertionPoint = [_items indexOfObject: item];
|
||||
[_items insertObject: holder atIndex: insertionPoint + 1];
|
||||
|
|
Loading…
Reference in a new issue