From 16bbada3dccf149b1e6e794a40d9289cc92de7bc Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 5 Jul 2008 13:57:12 +0000 Subject: [PATCH] Rebuild music sequence on style change --- Sources/VLDocument.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 385dca9..4826dbf 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -113,7 +113,7 @@ - (void)updateChangeCount:(NSDocumentChangeType)changeType { - hasMusicSequence = true; + hasMusicSequence = false; [validTmpFiles removeAllObjects]; [super updateChangeCount:changeType]; } @@ -319,6 +319,7 @@ playElements ^= [sender tag]; [validTmpFiles removeObjectForKey:@"mma"]; [validTmpFiles removeObjectForKey:@"mid"]; + hasMusicSequence = false; } - (BOOL) validateMenuItem:(NSMenuItem *)menuItem @@ -533,6 +534,7 @@ NSString * savedGroove = songGroove; [validTmpFiles removeObjectForKey:@"mma"]; [validTmpFiles removeObjectForKey:@"mid"]; + hasMusicSequence = false; songGroove = groove; previewRange = sections; playElements |= kVLPlayGroovePreview; @@ -541,6 +543,7 @@ songGroove = savedGroove; [validTmpFiles removeObjectForKey:@"mma"]; [validTmpFiles removeObjectForKey:@"mid"]; + hasMusicSequence = false; } - (IBAction) stop:(id)sender