aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-event_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-event_handler.c')
-rw-r--r--src/fs/gnunet-fs-gtk-event_handler.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index 7520c48d..b1d89216 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -611,6 +611,13 @@ start_download (GtkTreeView * tree_view, GtkTreePath * path,
611 return; 611 return;
612 } 612 }
613 gtk_tree_model_get (tm, &iter, 0, &meta, 1, &uri, 9, &sr, 10, &mime, -1); 613 gtk_tree_model_get (tm, &iter, 0, &meta, 1, &uri, 9, &sr, 10, &mime, -1);
614 if (! (GNUNET_FS_uri_test_chk (uri) ||
615 GNUNET_FS_uri_test_loc (uri)) )
616 {
617 /* can only download chk/loc URIs, ignore */
618 g_free (mime);
619 return;
620 }
614 dlc = GNUNET_malloc (sizeof (struct DownloadContext)); 621 dlc = GNUNET_malloc (sizeof (struct DownloadContext));
615 dlc->uri = GNUNET_FS_uri_dup (uri); 622 dlc->uri = GNUNET_FS_uri_dup (uri);
616 dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL; 623 dlc->mime = (NULL != mime) ? GNUNET_strdup (mime) : NULL;