aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 3ea3e76aa..29c3b600f 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1481,13 +1481,19 @@ file_manager_receive_file_response_cb (GtkDialog *dialog,
{
EmpathyFTFactory *factory;
GFile *file;
+ gboolean use_hash;
if (response == GTK_RESPONSE_OK) {
factory = empathy_ft_factory_dup_singleton ();
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
+ use_hash = empathy_conf_get_bool
+ (empathy_conf_get (),
+ EMPATHY_PREFS_FILE_TRANSFER_USE_HASH,
+ &use_hash);
+
empathy_ft_factory_set_destination_for_incoming_handler
- (factory, handler, file);
+ (factory, handler, file, use_hash);
g_object_unref (factory);
g_object_unref (file);