Mark the document as edited. This prevents the user from loosing work

when importing a gmodel.  Also make a "new" document edited since it is
unsaved.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-02-13 14:30:55 +00:00
parent faf7f3c0cc
commit 5454bafb52
3 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-02-13 09:37 Gregory John Casamento <greg_casamento@yahoo.com>
* GModelDecoder.m: After gmodel load, mark the document as
edited in openGModel:.
* GormDocument.m: in setupDefaults: mark the document as
edited.
2005-02-13 09:27 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: in [GormDocument attachObject:withParent:]

View file

@ -609,6 +609,8 @@ static BOOL gormFileOwnerDecoded;
[self rebuildObjToNameMapping];
// RELEASE(unarchiver);
[self touch]; // mark the document
return self;
}
@end

View file

@ -2409,6 +2409,8 @@ static NSImage *fileImage = nil;
[self setName: @"PaletteWin" forObject: aWindow];
[self attachObject: aWindow toParent: nil];
}
[self touch];
}
- (void) setName: (NSString*)aName forObject: (id)object