Browse Source

Dropbox: fix corner-case in which the view controller fails to pop

Felix Paul Kühne 12 years ago
parent
commit
0375b71f5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      AspenProject/VLCDropboxTableViewController.m

+ 1 - 1
AspenProject/VLCDropboxTableViewController.m

@@ -127,7 +127,7 @@
 
 
 - (IBAction)goBack:(id)sender
 - (IBAction)goBack:(id)sender
 {
 {
-    if (![_currentPath isEqualToString:@"/"]) {
+    if (![_currentPath isEqualToString:@"/"] && [_currentPath length] > 0) {
         _currentPath = [_currentPath stringByDeletingLastPathComponent];
         _currentPath = [_currentPath stringByDeletingLastPathComponent];
         [self _requestInformationForCurrentPath];
         [self _requestInformationForCurrentPath];
     } else
     } else