From 5cece5feb3037db02f03ea1340edd371842e1b5f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 23 Jan 2010 00:30:04 +0000 Subject: [PATCH] #2785 - generate the file list right away instead of lazily, since auto-grouping might rely on it --- macosx/Torrent.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 4748fcc26..27b267f68 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1262,17 +1262,11 @@ int trashDataFile(const char * filename) - (NSArray *) fileList { - if (!fFileList && ![self isMagnet]) - [self createFileList]; - return fFileList; } - (NSArray *) flatFileList { - if (!fFlatFileList && ![self isMagnet]) - [self createFileList]; - return fFlatFileList; } @@ -1597,6 +1591,10 @@ int trashDataFile(const char * filename) fWaitToStart = waitToStart && [waitToStart boolValue]; fResumeOnWake = NO; + + //don't do after this point - it messes with auto-group functionality + if (![self isMagnet]) + [self createFileList]; fGroupValue = groupValue ? [groupValue intValue] : [[GroupsController groups] groupIndexForTorrent: self]; @@ -1746,6 +1744,8 @@ int trashDataFile(const char * filename) { fStat = tr_torrentStat(fHandle); + [self createFileList]; + [[NSNotificationCenter defaultCenter] postNotificationName: @"ResetInspector" object: self]; } -- 2.40.0