aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_download-save-as.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_download-save-as.c')
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index 63b711cd..33998313 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -67,8 +67,6 @@ GNUNET_FS_GTK_free_download_entry (struct DownloadEntry *de)
67 de->sr->download = NULL; 67 de->sr->download = NULL;
68 } 68 }
69 GNUNET_free_non_null (de->filename); 69 GNUNET_free_non_null (de->filename);
70 if (NULL != de->meta)
71 GNUNET_CONTAINER_meta_data_destroy (de->meta);
72 GNUNET_FS_uri_destroy (de->uri); 70 GNUNET_FS_uri_destroy (de->uri);
73 GNUNET_free (de); 71 GNUNET_free (de);
74} 72}
@@ -176,7 +174,7 @@ GNUNET_FS_GTK_open_download_as_dialog (struct DownloadEntry *de)
176 set recursive 'default' value based on what the 'dc' tells us */ 174 set recursive 'default' value based on what the 'dc' tells us */
177 cb = GTK_WIDGET (gtk_builder_get_object 175 cb = GTK_WIDGET (gtk_builder_get_object
178 (dlc->builder, "GNUNET_GTK_save_as_recursive_check_button")); 176 (dlc->builder, "GNUNET_GTK_save_as_recursive_check_button"));
179 if (GNUNET_FS_meta_data_test_for_directory (de->meta)) 177 if (GNUNET_NO != de->is_directory)
180 gtk_widget_set_sensitive (cb, TRUE); 178 gtk_widget_set_sensitive (cb, TRUE);
181 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb), 179 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (cb),
182 de->is_recursive); 180 de->is_recursive);
@@ -247,7 +245,7 @@ GNUNET_FS_GTK_download_context_start_download (struct DownloadEntry *de)
247 GNUNET_break (NULL != 245 GNUNET_break (NULL !=
248 GNUNET_FS_download_start (fs, 246 GNUNET_FS_download_start (fs,
249 de->uri, 247 de->uri,
250 de->meta, 248 NULL /* meta data */,
251 de->filename, NULL /* tempname */ , 249 de->filename, NULL /* tempname */ ,
252 0 /* offset */ , 250 0 /* offset */ ,
253 len, 251 len,