From c19f73f77e3c953d546012d9683d6feba1bf0748 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Tue, 8 Jun 2010 17:37:29 +0000 Subject: [PATCH] (qt) #3275: Seed ratio limit and ratio limit enabled are currently not pulled from a remote session --- qt/session.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qt/session.cc b/qt/session.cc index 8bf897fff..7413a0440 100644 --- a/qt/session.cc +++ b/qt/session.cc @@ -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 ) {