diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-23 11:27:13 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-23 11:27:13 +0000 |
commit | 4e23a6db9e8cdca8ba6a1c19f944f2b7c8ac9045 (patch) | |
tree | 1de7f76ab11235d1d1a62d65c785160dc53de50e /src/trg-torrent-add-dialog.c | |
parent | cdaff8ede183ae5d76b2d02d2cb72ce136e3592e (diff) |
issue 158
Diffstat (limited to 'src/trg-torrent-add-dialog.c')
-rw-r--r-- | src/trg-torrent-add-dialog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/trg-torrent-add-dialog.c b/src/trg-torrent-add-dialog.c index 3345a80..1b0ce31 100644 --- a/src/trg-torrent-add-dialog.c +++ b/src/trg-torrent-add-dialog.c @@ -251,6 +251,8 @@ static void trg_torrent_add_response_cb(GtkDialog * dlg, gint res_id, launch_add_thread(args); } + trg_destination_combo_save_selection(TRG_DESTINATION_COMBO(priv->dest_combo)); + g_free(dir); } else { g_str_slist_free(priv->filenames); @@ -712,8 +714,8 @@ static GObject *trg_torrent_add_dialog_constructor(GType type, 0, 0, 0); ++col; - priv->dest_combo = trg_destination_combo_new(priv->client, NULL); - gtk_combo_box_set_active(GTK_COMBO_BOX(priv->dest_combo), 0); + priv->dest_combo = trg_destination_combo_new(priv->client, TRG_PREFS_KEY_LAST_ADD_DESTINATION); + //gtk_combo_box_set_active(GTK_COMBO_BOX(priv->dest_combo), 0); gtk_table_attach(GTK_TABLE(t), priv->dest_combo, col, col + 1, row, row + 1, ~0, 0, 0, 0); gtk_label_set_mnemonic_widget(GTK_LABEL(l), priv->dest_combo); |