瀏覽代碼

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

Felix Paul Kühne 12 年之前
父節點
當前提交
0375b71f5a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      AspenProject/VLCDropboxTableViewController.m

+ 1 - 1
AspenProject/VLCDropboxTableViewController.m

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