From 2feadabe198c1dc18d1370fbad7a776b5d9f933a Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sun, 6 Feb 2005 15:38:10 +0000 Subject: [PATCH] Minor correction in -saveAsDocument: git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20665 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ GormDocument.m | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11a01c34..ece575d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-06 10:43 Gregory John Casamento + + * GormDocument.m: in -saveAsDocument: return the value + returned by -saveGormDocument: when it's called. + 2005-02-06 02:13 Gregory John Casamento * Resources/GormViewSizeInspector.gorm: Corrected box title color. diff --git a/GormDocument.m b/GormDocument.m index c8d151bb..d537e723 100644 --- a/GormDocument.m +++ b/GormDocument.m @@ -2630,9 +2630,7 @@ static NSImage *fileImage = nil; // set the path... ASSIGN(documentPath, path); - [self saveGormDocument: sender]; - - return YES; + return [self saveGormDocument: sender]; } return NO; } @@ -2897,9 +2895,11 @@ static NSImage *fileImage = nil; } else { + // mark the file as not edited. [window setDocumentEdited: NO]; [window setTitleWithRepresentedFilename: documentPath]; + // notify everyone of the save. [nc postNotificationName: IBDidSaveDocumentNotification object: self]; }