summaryrefslogtreecommitdiff
path: root/Applications/Spreadsheet/SpreadsheetWidget.cpp
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-01-02 10:06:53 +0330
committerAndreas Kling <kling@serenityos.org>2021-01-02 17:15:46 +0100
commit4bc33ee3aedbb185af384675f856d9c718d7d01b (patch)
tree028dba0d3dd54a0d95b3d31cc99c33ef59247dc2 /Applications/Spreadsheet/SpreadsheetWidget.cpp
parente080a4f74ae37d52e5d0c4223f99f220de5700aa (diff)
downloadserenity-4bc33ee3aedbb185af384675f856d9c718d7d01b.zip
Spreadsheet: Drop all references to example windows when closing them
Fixes #4716.
Diffstat (limited to 'Applications/Spreadsheet/SpreadsheetWidget.cpp')
-rw-r--r--Applications/Spreadsheet/SpreadsheetWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Applications/Spreadsheet/SpreadsheetWidget.cpp
index 57056558c1..65e48e3f12 100644
--- a/Applications/Spreadsheet/SpreadsheetWidget.cpp
+++ b/Applications/Spreadsheet/SpreadsheetWidget.cpp
@@ -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();
};