diff options
author | Linus Groh <mail@linusgroh.de> | 2021-02-20 12:03:28 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-20 12:19:46 +0100 |
commit | 3583b62ad36d8ece413eea5514493bf16fb954f7 (patch) | |
tree | c91686af537213dc64813d9b8935f22d64ba1598 /Userland/Libraries/LibGUI/FilePicker.cpp | |
parent | 3b9f110161bc78d8534a29e3f14030e1f5a15574 (diff) | |
download | serenity-3583b62ad36d8ece413eea5514493bf16fb954f7.zip |
LibGUI: Swap order of InputBox value and parent window args
This is now consistent with the other dialog classes.
Diffstat (limited to 'Userland/Libraries/LibGUI/FilePicker.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/FilePicker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/FilePicker.cpp b/Userland/Libraries/LibGUI/FilePicker.cpp index c73697b908..8f2a4fba6b 100644 --- a/Userland/Libraries/LibGUI/FilePicker.cpp +++ b/Userland/Libraries/LibGUI/FilePicker.cpp @@ -139,7 +139,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, const StringView& file_ auto mkdir_action = Action::create("New directory...", Gfx::Bitmap::load_from_file("/res/icons/16x16/mkdir.png"), [this](const Action&) { String value; - if (InputBox::show(value, this, "Enter name:", "New directory") == InputBox::ExecOK && !value.is_empty()) { + if (InputBox::show(this, value, "Enter name:", "New directory") == InputBox::ExecOK && !value.is_empty()) { auto new_dir_path = LexicalPath::canonicalized_path(String::formatted("{}/{}", m_model->root_path(), value)); int rc = mkdir(new_dir_path.characters(), 0777); if (rc < 0) { |