(trunk, web) fix bug #4621 'seeding progressbars don't show in web ui'

This commit is contained in:
Jordan Lee
2012-04-08 14:48:57 +00:00
parent 40126aa12d
commit 4727e20aba

View File

@@ -111,6 +111,7 @@ Transmission.prototype =
var o = data['arguments'];
Prefs.getClutchPrefs(o);
this.updateGuiFromSession(o);
this.sessionProperties = o;
}, this, async);
},
@@ -254,7 +255,7 @@ Transmission.prototype =
},
seedRatioLimit: function() {
var p = this._prefs;
var p = this.sessionProperties;
if (p && p.seedRatioLimited)
return p.seedRatioLimit;
return -1;