Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/26/15 14:53:51 (9 years ago)
Author:
pfleck
Message:

#2387 Fixed a bug where the automatic selection of the first element behaved differently for the NewItemDialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/NewItemDialog.cs

    r12399 r12401  
    304304      if (selectedNode != null) {
    305305        var node = typesTreeView.Nodes.Find(selectedNode.Name, searchAllChildren: true).SingleOrDefault();
    306         typesTreeView.SelectedNode = node;
    307         if (typesTreeView.SelectedNode == null) SelectedType = null;
     306        if (node != null)
     307          typesTreeView.SelectedNode = node;
     308        if (typesTreeView.SelectedNode == null)
     309          SelectedType = null;
    308310      }
    309311    }
Note: See TracChangeset for help on using the changeset viewer.