mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Further correction for previous problem with deleteSelection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20451 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8164894cfc
commit
2435542dcc
2 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-12-14 06:53 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassEditor.m: Further correction to previous issue.
|
||||
|
||||
2004-12-14 06:30 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassEditor.m: Corrected potential issue after delete
|
||||
|
|
|
@ -100,9 +100,7 @@ NSString *GormClassPboardType = @"GormClassPboardType";
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
// selectedClass is one of the items in the items in the outlineView.
|
||||
// it will be deallocated there.
|
||||
// RELEASE(selectedClass);
|
||||
RELEASE(selectedClass);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
@ -132,7 +130,7 @@ NSString *GormClassPboardType = @"GormClassPboardType";
|
|||
NSEnumerator *en;
|
||||
int row = 0;
|
||||
|
||||
selectedClass = className;
|
||||
ASSIGN(selectedClass, className);
|
||||
if(className != nil)
|
||||
{
|
||||
if([className isEqual: @"CustomView"] ||
|
||||
|
@ -203,7 +201,7 @@ NSString *GormClassPboardType = @"GormClassPboardType";
|
|||
int row = [self selectedRow];
|
||||
if (row >= 0)
|
||||
{
|
||||
selectedClass = [self selectedClassName];
|
||||
ASSIGN(selectedClass, [self selectedClassName]);
|
||||
[document setSelectionFromEditor: (id)self];
|
||||
}
|
||||
}
|
||||
|
@ -362,7 +360,7 @@ NSString *GormClassPboardType = @"GormClassPboardType";
|
|||
[self reloadData];
|
||||
[nc postNotificationName: GormDidModifyClassNotification
|
||||
object: classManager];
|
||||
selectedClass = nil; // don't keep the class we're pointing to.
|
||||
ASSIGN(selectedClass, nil); // don't keep the class we're pointing to.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue