[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18873 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18873 - gnunet-gtk/src/fs |
Date: |
Sat, 31 Dec 2011 21:08:33 +0100 |
Author: grothoff
Date: 2011-12-31 21:08:33 +0100 (Sat, 31 Dec 2011)
New Revision: 18873
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
Log:
-fix adding of duplicate entries for directories to the result set
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-12-31 19:55:53 UTC
(rev 18872)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2011-12-31 20:08:33 UTC
(rev 18873)
@@ -186,9 +186,15 @@
+/**
+ * Closure for 'add_directory_entry'.
+ */
struct AddDirectoryEntryContext
{
+ /**
+ *
+ */
struct DownloadEntry *de;
/**
@@ -196,6 +202,13 @@
*/
GtkTreeRowReference *prr;
+ /**
+ * Do we need to check if the given entry already exists to
+ * avoid adding it twice? Set to YES if 'add_directory_entry'
+ * is called upon directory completion (so we might see all
+ * entries again) and to NO if this is the initial download
+ * and we're calling during a 'PROGRESS' event.
+ */
int check_duplicates;
};
@@ -339,7 +352,7 @@
{
ade.de = de;
ade.prr = de->rr;
- ade.check_duplicates = GNUNET_NO;
+ ade.check_duplicates = GNUNET_YES;
GNUNET_FS_GTK_mmap_and_scan (filename, &add_directory_entry, &ade);
}
(void) change_download_colour (de, "green");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18873 - gnunet-gtk/src/fs,
gnunet <=