From e228a7f85b5678b88a0e360e9d4dbbdd08680433 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Tue, 12 Apr 2011 20:26:55 +0000 Subject: fix for total number of torrents count --- src/trg-main-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/trg-main-window.c') 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; -- cgit v1.2.3