From 2a1c6fc96ff03c84723ca1fb7d3a48e0cd3df115 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Tue, 8 Feb 2011 10:14:46 +0000 Subject: 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. --- src/trg-torrent-props-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/trg-torrent-props-dialog.c') 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) { -- cgit v1.2.3