summaryrefslogtreecommitdiff
path: root/src/trg-main-window.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-30 21:37:52 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-30 21:37:52 +0000
commit4783c442c1811a8004bebaff9eea326fdd731ac9 (patch)
tree257549031c9ba40221a3356783178e90ff5ea29d /src/trg-main-window.c
parentc0bae6b1b517feefbef197d55a72bb62e056b21e (diff)
bind ip column in peers treeview to correct column, fix for panel updates
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r--src/trg-main-window.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 490f377..e3eb0fd 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -262,7 +262,7 @@ static void update_selected_torrent_notebook(TrgMainWindow * win,
JsonObject *t;
GtkTreeIter iter;
- if (id >= 0 && id != priv->selectedTorrentId
+ if (id >= 0
&& get_torrent_data(client->torrentTable, id, &t, &iter)) {
trg_toolbar_torrent_actions_sensitive(priv->toolBar, TRUE);
trg_menu_bar_torrent_actions_sensitive(priv->menuBar, TRUE);
@@ -273,7 +273,6 @@ static void update_selected_torrent_notebook(TrgMainWindow * win,
mode);
trg_peers_model_update(priv->peersModel, client->updateSerial, t,
mode);
-
} else if (id < 0) {
trg_main_window_torrent_scrub(win);
trg_toolbar_torrent_actions_sensitive(priv->toolBar, FALSE);
@@ -1407,11 +1406,11 @@ static void set_limit_cb(GtkWidget * w, gpointer data)
JsonNode *req = NULL;
JsonObject *args;
- if (limitIds) {
+
+ if (limitIds)
req = torrent_set((JsonArray *) limitIds);
- } else {
+ else
req = session_set();
- }
args = node_get_arguments(req);