Commit f3afa27f authored by Carola's avatar Carola
Browse files

fix crash selecting a folder and pressing the createFolderButton

note: don't alter a list while you enumerate it
parent 5fa6b857
......@@ -757,7 +757,8 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
else
_indexPaths = [NSMutableArray arrayWithArray:[self.tableView indexPathsForSelectedRows]];
for (NSIndexPath *path in _indexPaths) {
for (NSInteger i = _indexPaths.count - 1; i >=0; i--) {
NSIndexPath *path = _indexPaths[i];
id mediaObject;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
mediaObject = _foundMedia[path.item];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment