Revision 126f90b3 trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs

b/trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs
152 152
                                   DisplayName = AccountName ,
153 153
                                   Directories = ownFolders.ToList()
154 154
                               };
155
            
155

  
156
            this.RootNodes.Add(rootItem);
157
            this.RootNodes.Add(othersNode);
156 158

  
157 159
            SetInitialSelections(Account);
158 160
            
159
            Execute.OnUIThread(()=>
160
                                   {
161
                                       this.RootNodes.Add(rootItem);
162
                                       this.RootNodes.Add(othersNode);
163
                                       IsBusy = false;
164
                                   });
161
            IsBusy = false;
165 162
        }
166 163

  
167 164
        public bool IsBusy
......
184 181
            
185 182
            var selects = from rootRecord in RootNodes
186 183
                          from record in rootRecord
187
                          where record.ObjectInfo!=null &&  selections.Contains(record.ObjectInfo.Name)
184
                          where record.Uri !=null &&  selections.Contains(record.Uri.ToString())
188 185
                          select record;
189 186

  
190 187
            selects.Apply(record=>record.IsChecked=true);

Also available in: Unified diff