Browse Source

fix bug which lead to the impression that the media library was empty even though it's full

Felix Paul Kühne 12 years ago
parent
commit
7afb16c203
1 changed files with 2 additions and 1 deletions
  1. 2 1
      AspenProject/VLCPlaylistViewController.m

+ 2 - 1
AspenProject/VLCPlaylistViewController.m

@@ -94,7 +94,6 @@
     [[NSFileManager defaultManager] removeItemAtPath:[[NSURL URLWithString:mediaObject.url] path] error:nil];
 
     [self updateViewContents];
-    [self _displayEmptyLibraryViewIfNeeded];
 }
 
 - (void)_displayEmptyLibraryViewIfNeeded
@@ -139,6 +138,8 @@
         [self.tableView reloadData];
     else
         [self.gridView reloadData];
+
+    [self _displayEmptyLibraryViewIfNeeded];
 }
 
 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView