Opened 9 years ago
Closed 8 years ago
#2565 closed defect (done)
AlgorithmView clears the ViewType of the ProblemViewHost leaving the Viewhost in an invalid state
Reported by: | mkommend | Owned by: | mkommend |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.14 |
Component: | Optimization.Views | Version: | 3.3.13 |
Keywords: | Cc: |
Description
When the problem of an algorithm is changed, the according AlgorithmView updates its content:
protected virtual void Content_ProblemChanged(object sender, EventArgs e) { if (InvokeRequired) Invoke(new EventHandler(Content_ProblemChanged), sender, e); else { problemViewHost.ViewType = null; problemViewHost.Content = Content.Problem; } }
However, when the algorithm resets its problem to the previous value(for example when the new problem cannot be used in combination with the algorithm) OnContentChanged is not executed and the ViewType stays null. The correct problem is still displayed, but the ViewHost is in an invalid state (OnContentChanged is responsible for setting the correct ViewType if it is null) and exceptions occur when switching the views or opening them in another tab.
Change History (5)
comment:1 Changed 9 years ago by mkommend
- Status changed from new to accepted
comment:2 Changed 9 years ago by mkommend
- Owner changed from mkommend to ascheibe
- Status changed from accepted to reviewing
comment:3 Changed 8 years ago by ascheibe
- Owner changed from ascheibe to mkommend
- Status changed from reviewing to readytorelease
Reviewed r13560, ok.
comment:4 Changed 8 years ago by mkommend
comment:5 Changed 8 years ago by mkommend
- Resolution set to done
- Status changed from readytorelease to closed
Note: See
TracTickets for help on using
tickets.
r13560: Changed algorithmView to reset the viewType of the problemViewHost only when the types of the displayed and new problem differ.