summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-20 09:01:17 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-20 09:01:17 +0000
commit004fe9ed03adf35a62ee714319cf3b49887afde0 (patch)
treec8630a5fd2f57db247af9e2c90b6a68d672876d5 /src/trg-main-window.c
parentebc57435d8e02b0a8e5adcd242f840da7c84c762 (diff)
fix crash on stats dialog
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index b5769af..3d038aa 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -979,10 +979,10 @@ static gboolean trg_update_torrents_timerfunc(gpointer data)
if (priv->client->session)
dispatch_async(priv->client,
- torrent_get(priv->client->
- activeOnlyUpdate ? -2 : -1),
- priv->
- client->activeOnlyUpdate ? on_torrent_get_active :
+ torrent_get(priv->
+ client->activeOnlyUpdate ? -2 : -1),
+ priv->client->
+ activeOnlyUpdate ? on_torrent_get_active :
on_torrent_get_update, data);
return FALSE;
@@ -1032,7 +1032,7 @@ trg_torrent_tree_view_visible_func(GtkTreeModel * model,
if (criteria & FILTER_FLAG_TRACKER) {
gchar *text =
trg_state_selector_get_selected_text(priv->stateSelector);
- JsonObject *json = NULL;
+ JsonObject *json;
gtk_tree_model_get(model, iter, TORRENT_COLUMN_JSON, &json,
-1);
@@ -1159,10 +1159,6 @@ on_generic_interactive_action(JsonObject * response, int status,
} else {
id = -1;
}
- /*struct timespec ts;
- ts.tv_sec = 0;
- ts.tv_nsec = 350000000;
- nanosleep(&ts, NULL); */
dispatch_async(priv->client, torrent_get(id),
on_torrent_get_interactive, data);