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];
|
||||
NSFileWrapper * prop = [wrappers objectForKey:@"Properties"];
|
||||
if (prop)
|
||||
if (prop) {
|
||||
NSUndoManager * undoMgr = [self undoManager];
|
||||
[undoMgr disableUndoRegistration];
|
||||
[self setValuesForKeysWithDictionary:
|
||||
[NSPropertyListSerialization
|
||||
propertyListFromData:[prop regularFileContents]
|
||||
mutabilityOption:NSPropertyListImmutable
|
||||
format:nil errorDescription:nil]];
|
||||
[undoMgr enableUndoRegistration];
|
||||
}
|
||||
return [self readFromXMLData:
|
||||
[[wrappers objectForKey:@"Song"] regularFileContents]
|
||||
error:outError];
|
||||
|
|
Loading…
Reference in New Issue
Block a user