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:
parent
9420a38912
commit
bb8451344f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue