1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

Calendar: Promote view_type ActionGroup to CalendarWidget's member

Otherwise, it would get destroyed after exiting the create() function.
This commit is contained in:
0GreenClover0 2023-08-13 20:49:34 +02:00 committed by Jelle Raaijmakers
parent bb23ee3521
commit 340230f6bf
2 changed files with 7 additions and 4 deletions

View file

@ -42,6 +42,8 @@ private:
ErrorOr<NonnullRefPtr<GUI::Action>> create_view_year_action();
ErrorOr<NonnullRefPtr<GUI::Action>> create_open_settings_action();
OwnPtr<GUI::ActionGroup> m_view_type_action_group;
RefPtr<EventCalendar> m_event_calendar;
};