Changeset 10217


Ignore:
Timestamp:
Feb 16, 2010, 12:00:22 AM (12 years ago)
Author:
charles
Message:

(trunk libT) #2907 "speed limit mode not retained after relaunch" -- fixed in trunk for 1.90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r10169 r10217  
    779779    if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, &boolVal ) )
    780780        turtle->isClockEnabled = boolVal;
     781    if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &boolVal ) )
     782        turtle->isEnabled = boolVal;
    781783    turtleBootstrap( session, turtle );
    782784
     
    11821184
    11831185    turtleFindNextChange( turtle );
    1184     isEnabled = turtle->isClockEnabled && !turtle->_nextChangeValue;
     1186
     1187    if( turtle->isClockEnabled )
     1188        isEnabled = !turtle->_nextChangeValue;
     1189    else
     1190        isEnabled = turtle->isEnabled;
     1191
    11851192    useAltSpeed( session, turtle, isEnabled, FALSE );
    11861193}
Note: See TracChangeset for help on using the changeset viewer.