Unselect selected plan when closing plan window

This commit is contained in:
Jonathan G Rennison
2020-11-06 18:22:05 +00:00
parent d25da35802
commit e7f552844b

View File

@@ -97,8 +97,11 @@ struct PlansWindow : Window {
~PlansWindow()
{
this->list.clear();
if (_current_plan) {
_current_plan->SetFocus(false);
_current_plan = nullptr;
}
}
virtual void OnClick(Point pt, int widget, int click_count)
{