Changeset 8401


Ignore:
Timestamp:
May 14, 2009, 6:28:11 PM (12 years ago)
Author:
charles
Message:

(trunk qt) #2077: doesn't show/modify the "Stop seeding torrents at ratio"

Location:
trunk/qt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/prefs.cc

    r8326 r8401  
    106106    { RPC_WHITELIST_ENABLED, TR_PREFS_KEY_RPC_WHITELIST_ENABLED, QVariant::Bool },
    107107    { RPC_WHITELIST, TR_PREFS_KEY_RPC_WHITELIST, QVariant::String },
    108     { SEED_RATIO_LIMIT, TR_PREFS_KEY_RATIO, QVariant::Double },
    109     { SEED_RATIO_LIMITED, TR_PREFS_KEY_RATIO_ENABLED, QVariant::Bool },
    110108    { USPEED_ENABLED, TR_PREFS_KEY_USPEED_ENABLED, QVariant::Bool },
    111109    { USPEED, TR_PREFS_KEY_USPEED, QVariant::Int },
  • trunk/qt/prefs.h

    r8323 r8401  
    110110            RPC_WHITELIST_ENABLED,
    111111            RPC_WHITELIST,
    112             SEED_RATIO_LIMIT,
    113             SEED_RATIO_LIMITED,
    114112            USPEED_ENABLED,
    115113            USPEED,
  • trunk/qt/session.cc

    r8389 r8401  
    122122        case Prefs :: PEER_LIMIT_GLOBAL:
    123123        case Prefs :: PEER_LIMIT_TORRENT:
    124         case Prefs :: SEED_RATIO_LIMIT:
    125         case Prefs :: SEED_RATIO_LIMITED:
    126124        case Prefs :: USPEED_ENABLED:
    127125        case Prefs :: USPEED:
     
    132130        case Prefs :: PEER_PORT:
    133131        case Prefs :: PEER_PORT_RANDOM_ON_START:
     132            sessionSet( myPrefs.keyStr(key), myPrefs.variant(key) );
     133            break;
     134
    134135        case Prefs :: RATIO:
     136            sessionSet( "seedRatioLimit", myPrefs.variant(key) );           
     137            break;           
    135138        case Prefs :: RATIO_ENABLED:
    136             sessionSet( myPrefs.keyStr(key), myPrefs.variant(key) );
     139            sessionSet( "seedRatioLimited", myPrefs.variant(key) );
    137140            break;
    138141
  • trunk/qt/torrent.cc

    r8316 r8401  
    341341
    342342        case TR_RATIOLIMIT_GLOBAL:
    343             if(( isLimited = myPrefs.getBool( Prefs :: SEED_RATIO_LIMITED )))
    344                 ratio = myPrefs.getDouble( Prefs :: SEED_RATIO_LIMIT );
     343            if(( isLimited = myPrefs.getBool( Prefs :: RATIO_ENABLED )))
     344                ratio = myPrefs.getDouble( Prefs :: RATIO );
    345345            break;
    346346
Note: See TracChangeset for help on using the changeset viewer.