[baobab] location: Don't set size/used info for unmounted volumes



commit 5c7c0144b6740c3898cd030b2eae42697715c844
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Mon Oct 1 19:01:00 2012 +0200

    location: Don't set size/used info for unmounted volumes
    
    Just set them to null, instead, which means that they are actually
    unknown. In this way we avoid showing them up in the UI.

 src/baobab-location.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-location.vala b/src/baobab-location.vala
index 61693f4..c4d6952 100644
--- a/src/baobab-location.vala
+++ b/src/baobab-location.vala
@@ -167,8 +167,8 @@ namespace Baobab {
                 icon = volume.get_icon ();
                 file = null;
                 info = null;
-                size = 0;
-                used = 0;
+                size = null;
+                used = null;
                 scanner = null;
             }
         }



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