From 008025c9c9e587c35e7036de5645a8512efd6675 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 13 Nov 2007 03:45:10 +0000 Subject: [PATCH] localize the folders' names in the "Transfers > General" preference pane --- macosx/Controller.m | 2 +- macosx/ExpandedPathToPathTransformer.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index a31d0fcb3..51df041e2 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2307,7 +2307,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi return NSDragOperationNone; } -#warning when dragging a torrent file that already exists, it gives a weird result +#warning when dragging a torrent file that already exists on and off, it gives a weird result - (void) draggingExited: (id ) info { if (fOverlayWindow) diff --git a/macosx/ExpandedPathToPathTransformer.m b/macosx/ExpandedPathToPathTransformer.m index 27232f09f..6b25184c9 100644 --- a/macosx/ExpandedPathToPathTransformer.m +++ b/macosx/ExpandedPathToPathTransformer.m @@ -38,7 +38,7 @@ - (id) transformedValue: (id) value { - return value == nil ? nil : [value lastPathComponent]; + return value == nil ? nil : [[NSFileManager defaultManager] displayNameAtPath:value]; } @end \ No newline at end of file