[gthumb] search: do not count duplicated files
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] search: do not count duplicated files
- Date: Sun, 10 Jan 2021 08:27:07 +0000 (UTC)
commit f0ebc4429597cd6a3112e9c08886adba2bbbf89d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Dec 31 17:24:14 2020 +0100
search: do not count duplicated files
extensions/search/gth-search-task.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/search/gth-search-task.c b/extensions/search/gth-search-task.c
index adeb932a..93767f7f 100644
--- a/extensions/search/gth-search-task.c
+++ b/extensions/search/gth-search-task.c
@@ -212,11 +212,11 @@ for_each_file_func (GFile *file,
file_data = gth_file_data_new (file, info);
- if (gth_test_match (GTH_TEST (task->priv->test), file_data)) {
+ if (gth_test_match (GTH_TEST (task->priv->test), file_data)
+ && gth_catalog_insert_file (GTH_CATALOG (task->priv->search), file_data->file, -1))
+ {
GList *file_list;
- gth_catalog_insert_file (GTH_CATALOG (task->priv->search), file_data->file, -1);
-
task->priv->n_files++;
update_secondary_text (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]