summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/MessageBox.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-13 21:11:49 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-13 21:11:49 +0200
commit14aa7f2d44e5d99f398c7bb0478fb9f62803f2f2 (patch)
tree7eac2bd9647be543c0addfe451b4a0bcd8e5a76b /Libraries/LibGUI/MessageBox.h
parent7ca9259ffda5e64bd4844965bc4b276b2e576e2c (diff)
downloadserenity-14aa7f2d44e5d99f398c7bb0478fb9f62803f2f2.zip
LibGUI: Add GUI::MessageBox::show_error() convenience function
This is just a wrapper around show() that puts up a standard-looking error message.
Diffstat (limited to 'Libraries/LibGUI/MessageBox.h')
-rw-r--r--Libraries/LibGUI/MessageBox.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/MessageBox.h b/Libraries/LibGUI/MessageBox.h
index 0d7ea6f96e..e4abdab96d 100644
--- a/Libraries/LibGUI/MessageBox.h
+++ b/Libraries/LibGUI/MessageBox.h
@@ -50,6 +50,7 @@ public:
virtual ~MessageBox() override;
static int show(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, Window* parent_window = nullptr);
+ static int show_error(const StringView& text, Window* parent_window = nullptr);
private:
explicit MessageBox(const StringView& text, const StringView& title, Type type = Type::None, InputType = InputType::OK, Window* parent_window = nullptr);