Commit f9e5d4f5 authored by Carola's avatar Carola
Browse files

don't automatically remove folders when the last item is moved out fixes #15118

parent 2a774c18
......@@ -996,16 +996,9 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
if ([item isKindOfClass:[MLFile class]]) {
MLFile *file = (MLFile *)item;
MLLabel *folder = [file.labels anyObject];
[self rearrangeFolderTrackNumbersForRemovedItem:file];
file.labels = nil;
file.folderTrackNumber = nil;
if ([folder.files count] == 0) {
[self removeMediaObject:folder updateDatabase:YES];
[self setEditing:NO];
[self backToAllItems:nil];
@synchronized(self) {
[_foundMedia removeObject: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