[nautilus] properties-window: Only perform deep count for directories



commit 1eae084b6c4d59dc25bc4d29630868452c4bfc72
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Thu Oct 10 08:34:33 2013 +0200

    properties-window: Only perform deep count for directories
    
    Prevent the spinner running endlessly when files are selected by only
    starting the deep count for directories.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703349

 src/nautilus-properties-window.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index a5e9b33..047843e 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2329,7 +2329,9 @@ append_directory_contents_fields (NautilusPropertiesWindow *window,
                NautilusFile *file;
 
                file = NAUTILUS_FILE (l->data);
-               start_deep_count_for_file (window, file);
+               if (nautilus_file_is_directory (file)) {
+                       start_deep_count_for_file (window, file);
+               }
        }
 
        /* Fill in the initial value. */


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