]> granicus.if.org Git - transmission/commitdiff
#4232 Extend tooltip support to disabled files in Inspector->Files
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 9 May 2011 02:13:39 +0000 (02:13 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 9 May 2011 02:13:39 +0000 (02:13 +0000)
macosx/FileOutlineController.m

index 9a71433641ff61edcf232ddb3b3ffd9ca9d3550a..6cd488dedd4185cd59c7ef935b7bc63000666dcf 100644 (file)
@@ -211,7 +211,12 @@ typedef enum
 {
     NSString * ident = [tableColumn identifier];
     if ([ident isEqualToString: @"Name"])
-        return [fTorrent fileLocation: item];
+    {
+        NSString * path = [fTorrent fileLocation: item];
+        if (!path)
+            path = [[item path] stringByAppendingPathComponent: [item name]];
+        return path;
+    }
     else if ([ident isEqualToString: @"Check"])
     {
         switch ([cell state])