From 68c18e4a0209b36991ab6f3d2fd29742c833363e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 31 Dec 2007 02:47:40 +0000 Subject: [PATCH] when showing the tooltip/copying message log rows, only show the file name, not the full path --- macosx/MessageWindowController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 23da4caf7..c99ed3976 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -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; }