aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r--src/plugins/fs/download.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index 2cfd36c2..20bbdf5c 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -563,7 +563,7 @@ static int delDownloadView(void * cls,
563 int isRecursive, 563 int isRecursive,
564 unsigned int anonymityLevel) { 564 unsigned int anonymityLevel) {
565 GtkTreeIter iter; 565 GtkTreeIter iter;
566 char * f; 566 char * f, * f2, * fn;
567 struct ECRS_URI * u; 567 struct ECRS_URI * u;
568 568
569 if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(summary), 569 if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(summary),
@@ -572,10 +572,16 @@ static int delDownloadView(void * cls,
572 gtk_tree_model_get(GTK_TREE_MODEL(summary), 572 gtk_tree_model_get(GTK_TREE_MODEL(summary),
573 &iter, 573 &iter,
574 DOWNLOAD_FILENAME, &f, 574 DOWNLOAD_FILENAME, &f,
575 DOWNLOAD_LINKNAME, &f2,
575 DOWNLOAD_URI, &u, 576 DOWNLOAD_URI, &u,
576 -1); 577 -1);
578
579 f = strrchr(f, DIR_SEPARATOR);
580 f2 = strrchr(f2, DIR_SEPARATOR);
581 fn = strrchr(filename, DIR_SEPARATOR);
582
577 if ( (ECRS_equalsUri(u, uri)) && 583 if ( (ECRS_equalsUri(u, uri)) &&
578 (0 == strcmp(f, filename)) ) { 584 (0 == strcmp(f, fn) || 0 == strcmp(f2, fn)) ) {
579 gtk_tree_store_remove(summary, 585 gtk_tree_store_remove(summary,
580 &iter); 586 &iter);
581 break; 587 break;