From a3cb3c0bc37f3c4f8fc044a69584b035ec6b1edf Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 6 Jul 2008 11:08:20 +0000 Subject: [PATCH] Prevent spurious dirtying --- Sources/VLDocument.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 8af6ae3..60f6327 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -269,6 +269,9 @@ - (void) setSongTempo:(int)tempo { + if (tempo == [songTempo intValue]) + return; + [self willChangeSong]; [songTempo autorelease]; songTempo = [[NSNumber numberWithInt:tempo] retain];