Selective Sync fixes
[pithos-ms-client] / trunk / Pithos.Client.WPF / Utils / EnumerableExtensions.cs
index 9de758a..d76fc09 100644 (file)
@@ -85,7 +85,7 @@ namespace Pithos.Client.WPF.Utils
             foreach (var item in orderedItems)
             {
                 var path = item.Uri.ToString();
-                var newNode = new DirectoryRecord{ DisplayName=item.Name,ObjectInfo=item};
+                var newNode = new DirectoryRecord{ DisplayName=item.Name.Split('/').Last(),ObjectInfo=item};
                 lookups[path] = newNode;
 
                 var lastIndex = path.LastIndexOf("/", StringComparison.Ordinal);