mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
Calendar: Make on_month_click capture the view_month_action's RefPtr
This commit is contained in:
parent
0d66a80a0f
commit
061061bd9c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue