1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

(trunk libT) #1592: file priorities are not preserved after exiting & starting a new session

This commit is contained in:
Charles Kerr 2009-01-12 18:02:28 +00:00
parent 9420a38912
commit bb8451344f

View file

@ -228,11 +228,11 @@ loadPriorities( tr_benc * dict,
if( tr_bencDictFindList( dict, KEY_PRIORITY, &list )
&& ( tr_bencListSize( list ) == n ) )
{
int64_t tmp;
int64_t priority;
tr_file_index_t i;
for( i = 0; i < n; ++i )
if( tr_bencGetInt( tr_bencListChild( list, i ), &tmp ) )
inf->files[i].priority = tmp;
if( tr_bencGetInt( tr_bencListChild( list, i ), &priority ) )
tr_torrentInitFilePriority( tor, i, priority );
ret = TR_FR_PRIORITY;
}