From 935c6cc0529ae5bd284d3f4e9030c04e3ecddd6a Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Thu, 21 Apr 2011 22:48:48 +0000 Subject: --- src/trg-main-window.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/trg-main-window.c') diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 96aeaa9..e86cba2 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -1122,8 +1122,10 @@ torrent_selection_changed(GtkTreeSelection * selection, gpointer data) GList *firstNode; gint64 id; - if (trg_torrent_model_is_remove_in_progress(priv->torrentModel)) - return FALSE; + if (trg_torrent_model_is_remove_in_progress(priv->torrentModel)) { + trg_main_window_torrent_scrub(win); + return TRUE; + } selectionList = gtk_tree_selection_get_selected_rows(selection, NULL); firstNode = g_list_first(selectionList); @@ -1159,13 +1161,12 @@ on_generic_interactive_action(JsonObject * response, int status, if (status == CURLE_OK) { gint64 id; - if (json_object_has_member(response, PARAM_TAG)) { + if (json_object_has_member(response, PARAM_TAG)) id = json_object_get_int_member(response, PARAM_TAG); - } else if (priv->client->activeOnlyUpdate) { + else if (priv->client->activeOnlyUpdate) id = -2; - } else { + else id = -1; - } dispatch_async(priv->client, torrent_get(id), on_torrent_get_interactive, data); -- cgit v1.2.3