(qt) #3275: Seed ratio limit and ratio limit enabled are currently not pulled from a remote session

This commit is contained in:
Daniel Lee 2010-06-08 17:37:29 +00:00
parent bc71c7753b
commit c19f73f77e
1 changed files with 7 additions and 0 deletions

View File

@ -824,6 +824,13 @@ Session :: updateInfo( tr_benc * d )
}
}
tr_bool b;
double x;
if( tr_bencDictFindBool( d, "seedRatioLimited", &b ) )
myPrefs.set( Prefs::RATIO_ENABLED, b ? true : false );
if( tr_bencDictFindReal( d, "seedRatioLimit", &x ) )
myPrefs.set( Prefs::RATIO, x );
/* Use the C API to get settings that, for security reasons, aren't supported by RPC */
if( mySession != 0 )
{