aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-06 08:52:11 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-06 08:52:11 +0000
commita84e74d83204bf8f424d204e4b6a0edd48083aee (patch)
tree2680208f4514c1f778f76c838739ee5f86ad0017
parenta69dfd505c500630f4f90ecbc49c94a9d3a696ab (diff)
downloadgnunet-gtk-a84e74d83204bf8f424d204e4b6a0edd48083aee.tar.gz
gnunet-gtk-a84e74d83204bf8f424d204e4b6a0edd48083aee.zip
-LRN: fix download by uri
-rw-r--r--src/fs/gnunet-fs-gtk-event_handler.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c
index aae48b44..4658d23e 100644
--- a/src/fs/gnunet-fs-gtk-event_handler.c
+++ b/src/fs/gnunet-fs-gtk-event_handler.c
@@ -1269,8 +1269,11 @@ clear_downloads (GtkButton * button, gpointer user_data)
1269 do 1269 do
1270 { 1270 {
1271 gtk_tree_model_get (tm, &iter, 9, &sr, -1); 1271 gtk_tree_model_get (tm, &iter, 9, &sr, -1);
1272 if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES)) 1272 if (sr->download != NULL)
1273 GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES); 1273 {
1274 if (sr->download->is_done == GNUNET_YES)
1275 GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES);
1276 }
1274 else if (sr->result == NULL) 1277 else if (sr->result == NULL)
1275 free_search_result (sr); 1278 free_search_result (sr);
1276 } 1279 }