mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 08:01:24 +00:00
notify Gorm only if the file was really saved, or it will reload the old file
This commit is contained in:
parent
80d0c2575e
commit
aa2ce8fd73
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue