Fixed undo for clear.
parent
e2b40fe1a3
commit
a24149dc10
|
@ -1,4 +1 @@
|
|||
* Undo does not work for Playlist -> Clear
|
||||
* UndoManager starts dropping old undo entries after 25 undos
|
||||
on the stack. Memleak?
|
||||
|
||||
Undo is broken badly when filtering.
|
||||
|
|
|
@ -517,13 +517,9 @@
|
|||
|
||||
- (IBAction)clear:(id)sender
|
||||
{
|
||||
[currentEntry setIndex:[NSNumber numberWithInt:-1]];
|
||||
[self setFilterPredicate:nil];
|
||||
|
||||
[self removeObjects:[self content]];
|
||||
[self updateTotalTime];
|
||||
|
||||
if (shuffle == YES)
|
||||
[self resetShuffleList];
|
||||
[self removeObjectsAtArrangedObjectIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [[self arrangedObjects] count])]];
|
||||
}
|
||||
|
||||
- (IBAction)clearFilterPredicate:(id)sender
|
||||
|
|
Loading…
Reference in New Issue