summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/PasswordInputDialog.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-05-13 13:10:27 +0100
committerLinus Groh <mail@linusgroh.de>2022-05-13 16:27:43 +0200
commitcdffe556c8fcca034b10cf91f0b05c17d835bc7b (patch)
tree189cbd59652eee1b2783a8323a7194100c78fd07 /Userland/Libraries/LibGUI/PasswordInputDialog.cpp
parent1f82beded3ae3664265f1ddf6075f64ca5a08cde (diff)
downloadserenity-cdffe556c8fcca034b10cf91f0b05c17d835bc7b.zip
LibGUI+Userland: Make Dialog::ExecResult an enum class
Diffstat (limited to 'Userland/Libraries/LibGUI/PasswordInputDialog.cpp')
-rw-r--r--Userland/Libraries/LibGUI/PasswordInputDialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/PasswordInputDialog.cpp b/Userland/Libraries/LibGUI/PasswordInputDialog.cpp
index 37731d27bc..a961fe4108 100644
--- a/Userland/Libraries/LibGUI/PasswordInputDialog.cpp
+++ b/Userland/Libraries/LibGUI/PasswordInputDialog.cpp
@@ -42,13 +42,13 @@ PasswordInputDialog::PasswordInputDialog(Window* parent_window, String title, St
ok_button.on_click = [&](auto) {
dbgln("GUI::PasswordInputDialog: OK button clicked");
m_password = password_box.text();
- done(ExecOK);
+ done(ExecResult::OK);
};
auto& cancel_button = *widget.find_descendant_of_type_named<GUI::Button>("cancel_button");
cancel_button.on_click = [this](auto) {
dbgln("GUI::PasswordInputDialog: Cancel button clicked");
- done(ExecCancel);
+ done(ExecResult::Cancel);
};
password_box.on_return_pressed = [&] {
@@ -60,7 +60,7 @@ PasswordInputDialog::PasswordInputDialog(Window* parent_window, String title, St
password_box.set_focus(true);
}
-int PasswordInputDialog::show(Window* parent_window, String& text_value, String title, String server, String username)
+Dialog::ExecResult PasswordInputDialog::show(Window* parent_window, String& text_value, String title, String server, String username)
{
auto box = PasswordInputDialog::construct(parent_window, move(title), move(server), move(username));
auto result = box->exec();