changeset 2588:669eeafa5d11

Show destination in Copy/Move dialog Expand the information message to include the destination folder for Copy and Move operations.
author Colin Clark <colin.clark@cclark.uk>
date Wed, 06 Sep 2017 19:56:58 +0100
parents c6f9494f6be1
children df15eef16238
files src/utilops.c
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/utilops.c	Wed Sep 06 11:59:47 2017 +0100
+++ b/src/utilops.c	Wed Sep 06 19:56:58 2017 +0100
@@ -1602,6 +1602,7 @@
 	GtkWidget *table;
 	GtkWidget *combo;
 	GtkWidget *page;
+	gchar *destination_message;
 
 	ud->gd = file_util_gen_dlg(ud->messages.title, "dlg_confirm",
 				   ud->parent, FALSE,  file_util_cancel_cb, ud);
@@ -1613,7 +1614,17 @@
 
 	generic_dialog_add_button(ud->gd, GTK_STOCK_OK, ud->messages.title, file_util_ok_cb, TRUE);
 
-	box = pref_group_new(box, TRUE, ud->messages.desc_flist, GTK_ORIENTATION_HORIZONTAL);
+	if (ud->type == UTILITY_TYPE_COPY || ud->type == UTILITY_TYPE_MOVE)
+		{
+		destination_message = g_strconcat(ud->messages.desc_flist," to: ", ud->dest_path, NULL);
+		}
+	else
+		{
+		destination_message = g_strdup(ud->messages.desc_flist);
+		}
+
+	box = pref_group_new(box, TRUE, destination_message, GTK_ORIENTATION_HORIZONTAL);
+	g_free(destination_message);
 
 	ud->listview = file_util_dialog_add_list(box, ud->flist, FALSE, ud->with_sidecars);
 	file_util_dialog_add_list_column(ud->listview, _("Sidecars"), FALSE, UTILITY_COLUMN_SIDECARS);