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,7 +97,10 @@ struct PlansWindow : Window {
~PlansWindow() ~PlansWindow()
{ {
this->list.clear(); this->list.clear();
_current_plan = nullptr; if (_current_plan) {
_current_plan->SetFocus(false);
_current_plan = nullptr;
}
} }
virtual void OnClick(Point pt, int widget, int click_count) virtual void OnClick(Point pt, int widget, int click_count)