Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3190 for trunk


Ignore:
Timestamp:
03/23/10 00:18:11 (15 years ago)
Author:
swagner
Message:

Canceled close operation in OperatorsSidebar only if the given CloseReason is UserClosing (#942).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs

    r3163 r3190  
    3737    protected override void OnClosing(FormClosingEventArgs e) {
    3838      base.OnClosing(e);
    39       e.Cancel = true;
    40       this.Hide();
     39      if (e.CloseReason == CloseReason.UserClosing) {
     40        e.Cancel = true;
     41        this.Hide();
     42      }
    4143    }
    4244  }
Note: See TracChangeset for help on using the changeset viewer.