diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-02-08 10:14:46 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-02-08 10:14:46 +0000 |
commit | 2a1c6fc96ff03c84723ca1fb7d3a48e0cd3df115 (patch) | |
tree | dd4eec987c7dcb2b7f0c361831c697c95901f4c9 /src/trg-torrent-props-dialog.c | |
parent | 3938a1340d62d6e207b117e0bc84ddb4f62cf6c8 (diff) |
if the torrent selection changes as a result of an update, was possible that it would select another item which has no JSON but isn't removed from the model yet. use updateSerial and updateMutex to ignore these.
Diffstat (limited to 'src/trg-torrent-props-dialog.c')
-rw-r--r-- | src/trg-torrent-props-dialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c index 100b876..d45fe66 100644 --- a/src/trg-torrent-props-dialog.c +++ b/src/trg-torrent-props-dialog.c @@ -265,7 +265,7 @@ static GObject *trg_torrent_props_dialog_constructor(GType type, selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(priv->tv)); rowCount = gtk_tree_selection_count_selected_rows(selection); - get_first_selected(priv->tv, &iter, &json); + get_first_selected(priv->client, priv->tv, &iter, &json); priv->targetIds = build_json_id_array(priv->tv); if (rowCount > 1) { |