1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Spreadsheet: Drop all references to example windows when closing them

Fixes #4716.
This commit is contained in:
AnotherTest 2021-01-02 10:06:53 +03:30 committed by Andreas Kling
parent e080a4f74a
commit 4bc33ee3ae
4 changed files with 13 additions and 10 deletions

View file

@ -60,7 +60,7 @@ SpreadsheetWidget::SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets, bool s
help_button.set_fixed_size(20, 20);
help_button.on_click = [&](auto) {
auto docs = m_selected_view->sheet().gather_documentation();
auto help_window = HelpWindow::the();
auto help_window = HelpWindow::the(window());
help_window->set_docs(move(docs));
help_window->show();
};