New SQLite version
[pithos-ms-client] / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchViewModel.cs
index bc9ea54..dd1cc21 100644 (file)
@@ -165,8 +165,8 @@ namespace Pithos.Client.WPF.SelectiveSynch
         {
             var selections = account.SelectiveFolders;
 
-            if (selections.Count == 0)
-                return;
+
+                
             //Initially, all nodes are checked
             //We need to *uncheck* the nodes that are not selected
 
@@ -174,6 +174,12 @@ namespace Pithos.Client.WPF.SelectiveSynch
                            from DirectoryRecord record in rootRecord
                            select record).ToList();
 
+            if (selections.Count == 0)
+            {
+                allNodes.Apply(record => record.IsChecked = false);
+                return;
+            } 
+            
             var selects = (from DirectoryRecord rootRecord in RootNodes
                           from DirectoryRecord record in rootRecord
                           where record.Uri !=null &&  !selections.Contains(record.Uri.ToString())