summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 50af191..e058b3d 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;
}