1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

when showing the tooltip/copying message log rows, only show the file name, not the full path

This commit is contained in:
Mitchell Livingston 2007-12-31 02:47:40 +00:00
parent 3ee06083e5
commit 68c18e4a02

View file

@ -357,7 +357,8 @@
{ {
NSString * file; NSString * file;
if ((file = [message objectForKey: @"File"])) if ((file = [message objectForKey: @"File"]))
return [NSString stringWithFormat: @"%@:%@", [message objectForKey: @"File"], [message objectForKey: @"Line"]]; return [NSString stringWithFormat: @"%@:%@", [[message objectForKey: @"File"] lastPathComponent],
[message objectForKey: @"Line"]];
else else
return nil; return nil;
} }