diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2013-02-20 19:46:53 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2013-02-20 19:46:53 +0000 |
commit | 69fd839c5d6069ec86bd2e113e980bcb6ca33505 (patch) | |
tree | 1c52409378c1344431c911669cba807e69dfc689 /src/trg-files-model.c | |
parent | 6feb984156f7e504a00ad8edfef84993ad1b3e74 (diff) |
mini-optimization: don't check children hash for files
Diffstat (limited to 'src/trg-files-model.c')
-rw-r--r-- | src/trg-files-model.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |