Changeset 17267 for trunk


Ignore:
Timestamp:
09/25/19 11:06:15 (2 years ago)
Author:
mkommend
Message:

#3018: Refactored condition for clean up of hive client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs

    r17222 r17267  
    144144      if (Content != null && Content.Jobs != null) {
    145145        // clear hive client only if it is not displayed by any other content view (i.e. job manager)
    146         var contentViews = MainFormManager.MainForm.Views.OfType<IContentView>();
    147         if (contentViews.All(x => x.Content != Content || x == this))
     146        var contentViews = MainFormManager.MainForm.Views.OfType<IContentView>()
     147          .Where(v => v.Content == Content && v != this);
     148        if (!contentViews.Any())
    148149          Content.ClearHiveClient();
    149150
Note: See TracChangeset for help on using the changeset viewer.