mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 19:23:59 +00:00
Don't count property load as a document change
This commit is contained in:
parent
a7cf4a28df
commit
ea4eb7f546
|
@ -742,12 +742,16 @@ int8_t sStepToPitch[] = {
|
||||||
)
|
)
|
||||||
[vcsWrapper retain];
|
[vcsWrapper retain];
|
||||||
NSFileWrapper * prop = [wrappers objectForKey:@"Properties"];
|
NSFileWrapper * prop = [wrappers objectForKey:@"Properties"];
|
||||||
if (prop)
|
if (prop) {
|
||||||
|
NSUndoManager * undoMgr = [self undoManager];
|
||||||
|
[undoMgr disableUndoRegistration];
|
||||||
[self setValuesForKeysWithDictionary:
|
[self setValuesForKeysWithDictionary:
|
||||||
[NSPropertyListSerialization
|
[NSPropertyListSerialization
|
||||||
propertyListFromData:[prop regularFileContents]
|
propertyListFromData:[prop regularFileContents]
|
||||||
mutabilityOption:NSPropertyListImmutable
|
mutabilityOption:NSPropertyListImmutable
|
||||||
format:nil errorDescription:nil]];
|
format:nil errorDescription:nil]];
|
||||||
|
[undoMgr enableUndoRegistration];
|
||||||
|
}
|
||||||
return [self readFromXMLData:
|
return [self readFromXMLData:
|
||||||
[[wrappers objectForKey:@"Song"] regularFileContents]
|
[[wrappers objectForKey:@"Song"] regularFileContents]
|
||||||
error:outError];
|
error:outError];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user