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
commit 061061bd9c
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

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);
};