Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/21/09 17:24:31 (15 years ago)
Author:
mkommend
Message:

added check to show every view only one time, second call of ShowView leads to focus of the view (ticket #716)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs

    r2305 r2306  
    114114
    115115    public virtual void ShowView(IView view) {
    116       view.MainForm = this;
    117       views.Add(view);
    118       ActiveView = view;
     116      if (!views.Contains(view)) {
     117        view.MainForm = this;
     118        views.Add(view);
     119        ActiveView = view;
     120      }
    119121    }
    120122
Note: See TracChangeset for help on using the changeset viewer.