diff options
Diffstat (limited to 'Libraries/LibWeb/DOM/Window.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/Window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/DOM/Window.cpp b/Libraries/LibWeb/DOM/Window.cpp index 4e4d335a8a..c3bf22ac29 100644 --- a/Libraries/LibWeb/DOM/Window.cpp +++ b/Libraries/LibWeb/DOM/Window.cpp @@ -58,12 +58,12 @@ void Window::set_wrapper(Badge<Bindings::WindowObject>, Bindings::WindowObject& void Window::alert(const String& message) { - GUI::MessageBox::show(message, "Alert", GUI::MessageBox::Type::Information); + GUI::MessageBox::show(nullptr, message, "Alert", GUI::MessageBox::Type::Information); } bool Window::confirm(const String& message) { - auto confirm_result = GUI::MessageBox::show(message, "Confirm", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::OKCancel); + auto confirm_result = GUI::MessageBox::show(nullptr, message, "Confirm", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::OKCancel); return confirm_result == GUI::Dialog::ExecResult::ExecOK; } |