diff --git a/Modules/Editors/ProjectCenter/PCEditor.m b/Modules/Editors/ProjectCenter/PCEditor.m index 7c87098..b6da8ef 100644 --- a/Modules/Editors/ProjectCenter/PCEditor.m +++ b/Modules/Editors/ProjectCenter/PCEditor.m @@ -658,18 +658,18 @@ postNotificationName:PCEditorWillSaveNotification object:self]; - // Send the notification to Gorm... - if([[_path pathExtension] isEqual: @"h"]) - { - [[NSDistributedNotificationCenter defaultCenter] - postNotificationName: @"GormParseClassNotification" - object: _path]; - } - saved = [[_storage string] writeToFile:_path atomically:YES]; if (saved == YES) { + // Send the notification to Gorm... + if([[_path pathExtension] isEqual: @"h"]) + { + [[NSDistributedNotificationCenter defaultCenter] + postNotificationName: @"GormParseClassNotification" + object: _path]; + } + [self setIsEdited:NO]; [[NSNotificationCenter defaultCenter] postNotificationName:PCEditorDidSaveNotification