Unselect selected plan when closing plan window
This commit is contained in:
@@ -97,8 +97,11 @@ struct PlansWindow : Window {
|
|||||||
~PlansWindow()
|
~PlansWindow()
|
||||||
{
|
{
|
||||||
this->list.clear();
|
this->list.clear();
|
||||||
|
if (_current_plan) {
|
||||||
|
_current_plan->SetFocus(false);
|
||||||
_current_plan = nullptr;
|
_current_plan = nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
virtual void OnClick(Point pt, int widget, int click_count)
|
virtual void OnClick(Point pt, int widget, int click_count)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user