mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +00:00
when showing the tooltip/copying message log rows, only show the file name, not the full path
This commit is contained in:
parent
3ee06083e5
commit
68c18e4a02
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@
|
|||
{
|
||||
NSString * 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
|
||||
return nil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue