SpreadSheet: Pass parent window when constructing About action

Fixes About dialog not blocking the app's main window.
This commit is contained in:
thankyouverycool 2022-08-25 21:25:10 -04:00 committed by Andreas Kling
parent 7b2becad52
commit 3dd522a109

View file

@ -238,7 +238,7 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, NonnullRefPtrVe
},
window());
m_about_action = GUI::CommonActions::make_about_action("Spreadsheet", GUI::Icon::default_icon("app-spreadsheet"sv), window());
m_about_action = GUI::CommonActions::make_about_action("Spreadsheet", GUI::Icon::default_icon("app-spreadsheet"sv), &parent_window);
toolbar.add_action(*m_new_action);
toolbar.add_action(*m_open_action);