(trunk) first draft of changing the FreeSpace API to behave as https://trac.transmissionbt.com/ticket/4076#comment:25 -- libT, rpc, qt, and gtk implementations.

This commit is contained in:
Jordan Lee
2013-02-09 04:05:03 +00:00
parent 794a0c1d80
commit cd09204a6e
31 changed files with 552 additions and 190 deletions

View File

@@ -258,8 +258,7 @@ Session :: Session (const char * configDir, Prefs& prefs):
myPrefs (prefs),
mySession (0),
myConfigDir (QString::fromUtf8 (configDir)),
myNAM (0),
myDownloadDirFreeSpace (-1)
myNAM (0)
{
myStats.ratio = TR_RATIO_NA;
myStats.uploadedBytes = 0;
@@ -1008,9 +1007,6 @@ Session :: updateInfo (tr_variant * d)
if (tr_variantDictFindStr (d, TR_KEY_version, &str, NULL) && (mySessionVersion != str))
mySessionVersion = str;
if (tr_variantDictFindInt (d, TR_KEY_download_dir_free_space, &i) && (myDownloadDirFreeSpace != i))
myDownloadDirFreeSpace = i;
//std::cerr << "Session :: updateInfo end" << std::endl;
connect (&myPrefs, SIGNAL (changed (int)), this, SLOT (updatePref (int)));