From 54fe88ff2bf84385d154a63b2f9f278c1c539790 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 6 Oct 2011 02:27:23 +0000 Subject: [PATCH] remove another call to filenames --- macosx/Controller.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 66ccc4680..2f234cb6f 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1017,7 +1017,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy { if (code == NSOKButton) { - NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: [panel filenames], @"Filenames", + NSMutableArray * filenames = [NSMutableArray arrayWithCapacity: [[panel URLs] count]]; + for (NSURL * url in [panel URLs]) + [filenames addObject: [url path]]; + + NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: filenames, @"Filenames", [NSNumber numberWithInt: [useOptions boolValue] ? ADD_SHOW_OPTIONS : ADD_MANUAL], @"AddType", nil]; [self performSelectorOnMainThread: @selector(openFilesWithDict:) withObject: dictionary waitUntilDone: NO]; } -- 2.40.0