diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-21 23:12:21 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-21 23:12:21 +0000 |
commit | 34c56c7db7c57f5db0184489d01866902e992300 (patch) | |
tree | 8707a14ac8f786ff684279be77e66946f235b751 /src/trg-torrent-add-dialog.c | |
parent | 3b8fd9e7274477cfad98d66e41a43417ce8d21bf (diff) |
make the execute command tree view in preferences a generic widget, the "persistent tree view"
Diffstat (limited to 'src/trg-torrent-add-dialog.c')
-rw-r--r-- | src/trg-torrent-add-dialog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c index 2e8ccf9..9589751 100644 --- a/src/trg-torrent-add-dialog.c +++ b/src/trg-torrent-add-dialog.c @@ -231,7 +231,7 @@ trg_torrent_add_response_cb(GtkDialog * dlg, gint res_id, gpointer data) gtk_combo_box_get_active(GTK_COMBO_BOX(priv->priority_combo)) - 1; gchar *dir = - gtk_combo_box_get_active_text(GTK_COMBO_BOX(priv->dest_combo)); + trg_destination_combo_get_dir(TRG_DESTINATION_COMBO(priv->dest_combo)); if (g_slist_length(priv->filenames) == 1) { JsonNode *req = @@ -258,6 +258,8 @@ trg_torrent_add_response_cb(GtkDialog * dlg, gint res_id, gpointer data) launch_add_thread(args); } + + g_free(dir); } else { g_str_slist_free(priv->filenames); } |