summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-05-04 16:35:25 +0200
committerraveit65 <[email protected]>2017-05-16 15:36:14 +0200
commit5537d27dc8be6202fab0089c271136975553008b (patch)
treee4685aea93d81355b55a9ed84b71742e1d4de225 /src/fr-window.c
parent2746378c0b49c76080bc2f9aa446ceab3b5d2e15 (diff)
downloadengrampa-5537d27dc8be6202fab0089c271136975553008b.tar.bz2
engrampa-5537d27dc8be6202fab0089c271136975553008b.tar.xz
hide folders in "View All Files"
Fixes #172
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index d189547..88e221b 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1117,9 +1117,8 @@ compute_file_list_name (FrWindow *window,
return FALSE;
if (window->priv->list_mode == FR_WINDOW_LIST_MODE_FLAT) {
- file_data_set_list_name (fdata, fdata->name);
- if (fdata->dir)
- fdata->dir_size = 0;
+ if (!(fdata->dir))
+ file_data_set_list_name (fdata, fdata->name);
return FALSE;
}