From 653537f8d7ef9420a506f92648095cd8203a688b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 16 Feb 2010 00:00:22 +0000 Subject: [PATCH] (trunk libT) #2907 "speed limit mode not retained after relaunch" -- fixed in trunk for 1.90 --- libtransmission/session.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libtransmission/session.c b/libtransmission/session.c index 3255abb40..adf5de77a 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -778,6 +778,8 @@ sessionSetImpl( void * vdata ) turtle->days = i; if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, &boolVal ) ) turtle->isClockEnabled = boolVal; + if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &boolVal ) ) + turtle->isEnabled = boolVal; turtleBootstrap( session, turtle ); data->done = TRUE; @@ -1181,7 +1183,12 @@ turtleBootstrap( tr_session * session, struct tr_turtle_info * turtle ) tr_bool isEnabled; turtleFindNextChange( turtle ); - isEnabled = turtle->isClockEnabled && !turtle->_nextChangeValue; + + if( turtle->isClockEnabled ) + isEnabled = !turtle->_nextChangeValue; + else + isEnabled = turtle->isEnabled; + useAltSpeed( session, turtle, isEnabled, FALSE ); }