Fix hidden directories not showing in a tree view
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sat, 9 Jul 2016 16:57:08 +0000 (18:57 +0200)
committerMaciej S. Szmigiero <mail@maciej.szmigiero.name>
Sat, 9 Jul 2016 16:57:08 +0000 (18:57 +0200)
commit56b0d4189f43a8a15ee7f34b8575a5889a1f6926
treee2c06b171c88038106ea0d8ec1216bf01526d84b
parent3e8045cddca9265cd7d430d4b10fe510d05c0187
Fix hidden directories not showing in a tree view

Directory tree view contains code that when "Show hidden files or folders"
option is not enabled but the user enters a path containing hidden
directories the missing tree entries are added automatically.

This didn't work (at least) in case when the first hidden directory in
newly selected path was in a current directory because the tree populating
function exited early when directory contents did not change since last
run, before checking for this special case.

Fix this by skipping this check when we have to add such hidden directory
entry.

This check must also be skipped when 'force' flag is passed to this
function, otherwise when enabling "Show hidden files or folders" option
the missing directories are not added to the tree until Geeqie is
restarted.

Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
src/view_dir_tree.c