mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05: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…
Reference in a new issue