diff options
-rw-r--r-- | src/trg-file-parser.c | 2 | ||||
-rw-r--r-- | src/trg-files-model.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-file-parser.c b/src/trg-file-parser.c index 03c4f8d..2916615 100644 --- a/src/trg-file-parser.c +++ b/src/trg-file-parser.c @@ -70,7 +70,7 @@ static trg_files_tree_node *trg_file_parser_node_insert(trg_files_tree_node } } - if (!target_node && lastIter && lastIter->childrenHash) + if (!target_node && lastIter && lastIter->childrenHash && !isFile) target_node = g_hash_table_lookup(lastIter->childrenHash, path_el_node->val.s); if (!target_node) { diff --git a/src/trg-files-model.c b/src/trg-files-model.c index a0a2a37..bfb1c81 100644 --- a/src/trg-files-model.c +++ b/src/trg-files-model.c @@ -192,7 +192,7 @@ static trg_files_tree_node *trg_file_parser_node_insert(trg_files_tree_node } } - if (!target_node && lastIter && lastIter->childrenHash) + if (!target_node && lastIter && lastIter->childrenHash && !isFile) target_node = g_hash_table_lookup(lastIter->childrenHash, path_el); /* Node needs creating */ |