summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-12 20:26:55 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-12 20:26:55 +0000
commite228a7f85b5678b88a0e360e9d4dbbdd08680433 (patch)
tree64b3324db1387142a5afcc0a5a024b20587b0281 /src/trg-main-window.c
parentb2ff688493cf9f5381ad69fb05747c9944a46ca3 (diff)
fix for total number of torrents count
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 885db40..eb16d8d 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -923,12 +923,12 @@ on_torrent_get(JsonObject * response, int mode, int status, gpointer data)
stats.seeding = 0;
stats.down = 0;
stats.paused = 0;
+ stats.count = 0;
client->updateSerial++;
trg_torrent_model_update(priv->torrentModel, priv->client,
response, &stats, mode);
- trg_torrent_model_stats_scan(priv->torrentModel, &stats);
update_selected_torrent_notebook(TRG_MAIN_WINDOW(data), mode);
@@ -977,8 +977,8 @@ static gboolean trg_update_torrents_timerfunc(gpointer data)
if (priv->client->session)
dispatch_async(priv->client,
torrent_get(priv->client->activeOnlyUpdate),
- priv->
- client->activeOnlyUpdate ? on_torrent_get_active :
+ priv->client->
+ activeOnlyUpdate ? on_torrent_get_active :
on_torrent_get_update, data);
return FALSE;