1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +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

@ -236,7 +236,7 @@ int main(int argc, char* argv[])
help_menu.add_action(GUI::Action::create(
"Functions Help", [&](auto&) {
auto docs = spreadsheet_widget.current_worksheet().gather_documentation();
auto help_window = Spreadsheet::HelpWindow::the();
auto help_window = Spreadsheet::HelpWindow::the(window);
help_window->set_docs(move(docs));
help_window->show();
},