diff options
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r-- | src/plugins/fs/download.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index 13a27215..f43d86ec 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -516,6 +516,7 @@ fs_download_stopped (DownloadList * list) | |||
516 | 516 | ||
517 | /* **************** user download events ******************** */ | 517 | /* **************** user download events ******************** */ |
518 | 518 | ||
519 | |||
519 | /** | 520 | /** |
520 | * Check if a download for the given filename is | 521 | * Check if a download for the given filename is |
521 | * already running. | 522 | * already running. |
@@ -544,7 +545,7 @@ check_pending (const char *filename, GtkTreeIter * parent) | |||
544 | if (name != NULL) | 545 | if (name != NULL) |
545 | free (name); | 546 | free (name); |
546 | if (GNUNET_SYSERR == check_pending (filename, &iter)) | 547 | if (GNUNET_SYSERR == check_pending (filename, &iter)) |
547 | return GNUNET_SYSERR; | 548 | return GNUNET_SYSERR; |
548 | } | 549 | } |
549 | while (gtk_tree_model_iter_next (model, &iter)); | 550 | while (gtk_tree_model_iter_next (model, &iter)); |
550 | } | 551 | } |
@@ -750,7 +751,7 @@ initiateDownload (GtkTreeModel * model, | |||
750 | "downloadAnonymitySpinButton"); | 751 | "downloadAnonymitySpinButton"); |
751 | sdc.recursive = getToggleButtonValue (sdc.searchContext->searchXML, | 752 | sdc.recursive = getToggleButtonValue (sdc.searchContext->searchXML, |
752 | "downloadRecursiveCheckButton"); | 753 | "downloadRecursiveCheckButton"); |
753 | if (GNUNET_OK == check_pending (idc_name, NULL)) | 754 | if (GNUNET_OK == check_pending (sdc.idc_final_download_destination, NULL)) |
754 | { | 755 | { |
755 | GNUNET_GTK_add_log_entry (_("Downloading `%s'\n"), idc_name); | 756 | GNUNET_GTK_add_log_entry (_("Downloading `%s'\n"), idc_name); |
756 | GNUNET_GTK_run_with_save_calls (&init_download_helper, &sdc); | 757 | GNUNET_GTK_run_with_save_calls (&init_download_helper, &sdc); |
@@ -769,7 +770,7 @@ initiateDownload (GtkTreeModel * model, | |||
769 | 770 | ||
770 | /** | 771 | /** |
771 | * The download button in the search dialog was | 772 | * The download button in the search dialog was |
772 | * clicked. GNUNET_ND_DOWNLOAD all selected entries. | 773 | * clicked. Download all selected entries. |
773 | */ | 774 | */ |
774 | void | 775 | void |
775 | on_downloadButton_clicked_fs (GtkWidget * treeview, | 776 | on_downloadButton_clicked_fs (GtkWidget * treeview, |