[nautilus/269-nautilus-shows-size-null-on-file-transfer: 3/3] operations-ui-manager: Always get dir item count



commit 47845327f9c3e3676cd16b3803616571422aafde
Author: António Fernandes <antoniof gnome org>
Date:   Tue Apr 24 20:15:34 2018 +0100

    operations-ui-manager: Always get dir item count
    
    When comparing conflicting folders, we provide the item count for each.
    However, sometimes we do not have the directory item count.
    
    Make sure to request the item count before setting the size label.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/269

 src/nautilus-operations-ui-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-operations-ui-manager.c b/src/nautilus-operations-ui-manager.c
index f13e3d391..fbaac05c9 100644
--- a/src/nautilus-operations-ui-manager.c
+++ b/src/nautilus-operations-ui-manager.c
@@ -431,7 +431,7 @@ run_file_conflict_dialog (gpointer user_data)
     files = g_list_prepend (files, data->destination_directory);
 
     nautilus_file_list_call_when_ready (files,
-                                        NAUTILUS_FILE_ATTRIBUTES_FOR_ICON,
+                                        NAUTILUS_FILE_ATTRIBUTES_FOR_ICON | 
NAUTILUS_FILE_ATTRIBUTE_DIRECTORY_ITEM_COUNT,
                                         &data->handle,
                                         data->on_file_list_ready,
                                         data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]