Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7928


Ignore:
Timestamp:
05/29/12 18:38:19 (12 years ago)
Author:
ascheibe
Message:

#1711

  • disabled resource view of Hive Administrator as default view
  • fixed OnContentChanged
Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r7259 r7928  
    3535namespace HeuristicLab.Clients.Hive.Administrator.Views {
    3636  [View("Resources View")]
    37   [Content(typeof(IItemList<Resource>), IsDefaultView = true)]
     37  [Content(typeof(IItemList<Resource>), false)]
    3838  public partial class ResourcesView : ItemView, IDisposable {
    3939    public new IItemList<Resource> Content {
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs

    r7927 r7928  
    9595
    9696    protected override void OnContentChanged() {
     97      base.OnContentChanged();
     98
    9799      if (Content != null) {
    98         base.OnContentChanged();
    99100        selectedResources = new HashSet<Resource>(Content.Where(x => selectedResources.Any(y => x.Id == y.Id)));
    100       }
    101       UpdateMainTree();
    102       ExtractStatistics();
     101        UpdateMainTree();
     102        ExtractStatistics();
     103      } else {
     104        mainTreeNodes.Clear();
     105        UpdateFilteredTree();
     106      }
    103107    }
    104108
Note: See TracChangeset for help on using the changeset viewer.