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; }