aboutsummaryrefslogtreecommitdiff
path: root/src/download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-27 15:43:05 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-27 15:43:05 +0000
commit0019fe9a8678b44285bd01231b920a63514d18db (patch)
treeef55dfe7096303dcddf55d632585ec25ed22fb6d /src/download.c
parent403f333f6bd16ce92bb9a279bc2b08f6cd775af6 (diff)
downloadgnunet-gtk-0019fe9a8678b44285bd01231b920a63514d18db.tar.gz
gnunet-gtk-0019fe9a8678b44285bd01231b920a63514d18db.zip
stuff
Diffstat (limited to 'src/download.c')
-rw-r--r--src/download.c48
1 files changed, 26 insertions, 22 deletions
diff --git a/src/download.c b/src/download.c
index 6eedde8d..fa8834a1 100644
--- a/src/download.c
+++ b/src/download.c
@@ -99,29 +99,33 @@ GNUNET_GTK_open_download_as_dialog (struct DownloadContext *dc)
99 de->ts = GTK_TREE_STORE (gtk_tree_row_reference_get_model (dc->rr)); 99 de->ts = GTK_TREE_STORE (gtk_tree_row_reference_get_model (dc->rr));
100 } 100 }
101 if (dc->sr != NULL) 101 if (dc->sr != NULL)
102 GNUNET_break (NULL != 102 {
103 GNUNET_FS_download_start_from_search (fs, 103 GNUNET_break (NULL !=
104 dc->sr, 104 GNUNET_FS_download_start_from_search (fs,
105 dc->filename, 105 dc->sr,
106 NULL /* tempname */, 106 dc->filename,
107 0 /* offset */, 107 NULL /* tempname */,
108 len, 108 0 /* offset */,
109 anonymity, 109 len,
110 opt, 110 anonymity,
111 de)); 111 opt,
112 de));
113 }
112 else 114 else
113 GNUNET_break (NULL != 115 {
114 GNUNET_FS_download_start (fs, 116 GNUNET_break (NULL !=
115 dc->uri, 117 GNUNET_FS_download_start (fs,
116 NULL /* meta */, 118 dc->uri,
117 dc->filename, 119 NULL /* meta */,
118 NULL /* tempname */, 120 dc->filename,
119 0 /* offset */, 121 NULL /* tempname */,
120 len, 122 0 /* offset */,
121 anonymity, 123 len,
122 opt, 124 anonymity,
123 de, 125 opt,
124 NULL /* parent download ctx */)); 126 de,
127 NULL /* parent download ctx */));
128 }
125 GNUNET_free (dc); 129 GNUNET_free (dc);
126} 130}
127 131