summaryrefslogtreecommitdiff
path: root/src/trg-torrent-move-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-torrent-move-dialog.c')
-rw-r--r--src/trg-torrent-move-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-torrent-move-dialog.c b/src/trg-torrent-move-dialog.c
index c742e98..8ea6802 100644
--- a/src/trg-torrent-move-dialog.c
+++ b/src/trg-torrent-move-dialog.c
@@ -60,14 +60,14 @@ trg_torrent_move_response_cb(GtkDialog * dlg, gint res_id, gpointer data)
if (res_id == GTK_RESPONSE_ACCEPT) {
gchar *location =
- gtk_combo_box_get_active_text(GTK_COMBO_BOX
+ trg_destination_combo_get_dir(TRG_DESTINATION_COMBO
(priv->location_combo));
JsonNode *request = torrent_set_location(priv->ids, location,
gtk_toggle_button_get_active
(GTK_TOGGLE_BUTTON
(priv->move_check)));
- request_set_tag_from_ids(request, priv->ids);
g_free(location);
+ request_set_tag_from_ids(request, priv->ids);
dispatch_async(priv->client, request,
on_generic_interactive_action, data);
} else {