mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Correction for crash after gmodel conversion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21193 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
69bc03eb7e
commit
7c7e2deac1
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-05-07 06:50 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Gorm.m: In handleNotification: reset selection owner to
|
||||
nil when document is closed. In validateMenuItem: do not get
|
||||
class manager or selection owner when there is no active document.
|
||||
|
||||
2005-05-07 06:35 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GModelDecoder.m: Code to remove uneeded
|
||||
|
|
14
Gorm.m
14
Gorm.m
|
@ -1029,6 +1029,7 @@
|
|||
}
|
||||
else if ([name isEqual: IBWillCloseDocumentNotification])
|
||||
{
|
||||
selectionOwner = nil;
|
||||
[documents removeObjectIdenticalTo: obj];
|
||||
}
|
||||
}
|
||||
|
@ -1153,16 +1154,15 @@
|
|||
{
|
||||
GormDocument *active = (GormDocument*)[self activeDocument];
|
||||
SEL action = [item action];
|
||||
GormClassManager *cm = [active classManager];
|
||||
NSArray *s = [selectionOwner selection];
|
||||
GormClassManager *cm = nil;
|
||||
NSArray *s = nil;
|
||||
|
||||
// temporarily disabling this functionality....
|
||||
/*
|
||||
if (sel_eq(action, @selector(loadClass:)))
|
||||
// if we have an active document...
|
||||
if(active != nil)
|
||||
{
|
||||
return NO;
|
||||
cm = [active classManager];
|
||||
s = [selectionOwner selection];
|
||||
}
|
||||
*/
|
||||
|
||||
if (sel_eq(action, @selector(close:))
|
||||
|| sel_eq(action, @selector(miniaturize:))
|
||||
|
|
Loading…
Reference in a new issue