Changeset 6345


Ignore:
Timestamp:
Jul 16, 2008, 8:06:28 PM (13 years ago)
Author:
charles
Message:

(clutch) fix error with setting the incoming port via clutch preferences. reported by lolek in irc

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc.c

    r6331 r6345  
    560560{
    561561    const char * str;
    562     tr_benc * d = tr_bencDictAddDict( args_out, "session", 10 );
     562    tr_benc * d = args_out;
    563563
    564564    tr_bencDictAddStr( d, "download-dir",
     
    587587    tr_bencDictAddStr( d, "encryption", str );
    588588
    589 
    590    
    591589    return NULL;
    592590}
  • trunk/web/javascript/transmission.js

    r6341 r6345  
    525525                // pass the new prefs upstream to the RPC server
    526526                var o = { };
     527                o[RPC._PeerPort]         = parseInt( $('#prefs_form #port')[0].value );
    527528                o[RPC._UpSpeedLimit]     = parseInt( $('#prefs_form #upload_rate')[0].value );
    528529                o[RPC._DownSpeedLimit]   = parseInt( $('#prefs_form #download_rate')[0].value );
    529530                o[RPC._DownloadDir]      = $('#prefs_form #download_location')[0].value;
    530                 o[RPC._PeerPort]         = $('#prefs_form #port')[0].value;
    531531                o[RPC._UpSpeedLimited]   = $('#prefs_form #limit_upload')[0].checked;
    532532                o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked;
  • trunk/web/javascript/transmission.remote.js

    r6341 r6345  
    9292                o.method = 'session-get';
    9393                this.sendRequest( RPC._Root, $.toJSON(o), function(data) {
    94                         var o = data.arguments.session;
     94                        var o = data.arguments;
    9595                        Prefs.getClutchPrefs( o );
    9696                        tr.updatePrefs( o );
Note: See TracChangeset for help on using the changeset viewer.