mirror of
https://github.com/transmission/transmission
synced 2025-02-08 15:34:44 +00:00
remove another call to filenames
This commit is contained in:
parent
bc5b4be310
commit
54fe88ff2b
1 changed files with 5 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue