1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:47:35 +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

@ -27,6 +27,7 @@
#pragma once
#include <AK/JsonObject.h>
#include <LibGUI/Dialog.h>
#include <LibGUI/Widget.h>
#include <LibGUI/Window.h>
#include <LibWeb/OutOfProcessWebView.h>
@ -37,12 +38,12 @@ class HelpWindow : public GUI::Window {
C_OBJECT(HelpWindow);
public:
static NonnullRefPtr<HelpWindow> the()
static NonnullRefPtr<HelpWindow> the(GUI::Window* window)
{
if (s_the)
return *s_the;
return *(s_the = adopt(*new HelpWindow));
return *(s_the = adopt(*new HelpWindow(window)));
}
virtual ~HelpWindow() override;