mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
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:
parent
faf7f3c0cc
commit
5454bafb52
3 changed files with 11 additions and 0 deletions
|
@ -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:]
|
||||
|
|
|
@ -609,6 +609,8 @@ static BOOL gormFileOwnerDecoded;
|
|||
[self rebuildObjToNameMapping];
|
||||
|
||||
// RELEASE(unarchiver);
|
||||
[self touch]; // mark the document
|
||||
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue