mirror of
https://github.com/transmission/transmission.git
synced 2026-04-23 10:19:59 +01:00
(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:
@@ -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)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user