Prevent spurious dirtying

This commit is contained in:
Matthias Neeracher 2008-07-06 11:08:20 +00:00
parent 219e350751
commit a3cb3c0bc3

View File

@ -269,6 +269,9 @@
- (void) setSongTempo:(int)tempo
{
if (tempo == [songTempo intValue])
return;
[self willChangeSong];
[songTempo autorelease];
songTempo = [[NSNumber numberWithInt:tempo] retain];