Calendar: Make on_month_click capture the view_month_action's RefPtr

This commit is contained in:
0GreenClover0 2023-08-14 02:51:49 +02:00 committed by Andreas Kling
parent 0d66a80a0f
commit 061061bd9c

View file

@ -73,7 +73,7 @@ ErrorOr<NonnullRefPtr<CalendarWidget>> CalendarWidget::create(GUI::Window* paren
widget->create_on_tile_doubleclick();
calendar->on_month_click = [&] {
calendar->on_month_click = [view_month_action] {
view_month_action->set_checked(true);
};