summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-06-06 14:39:17 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-06 15:14:08 +0100
commit6fca2134d2f677c1e41ecaa0e8fdf643ba743e8c (patch)
tree8ffe7fa262c2f271c51cfdde362de7dc4d6be6c2 /Userland
parentd116fc01e89c15a992e30bb6b26ad13f6b87996a (diff)
downloadserenity-6fca2134d2f677c1e41ecaa0e8fdf643ba743e8c.zip
Mail: Fix mail settings not opening after prompt to configure
If the extra "/bin/MailSettings" argument is passed to Desktop::Launcher::open() it then is passed as an argument to MailSettings. This then causes the args parsing to fail leading to the settings not opening.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/Mail/MailWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Mail/MailWidget.cpp b/Userland/Applications/Mail/MailWidget.cpp
index b0664dc1ef..1b37ee986b 100644
--- a/Userland/Applications/Mail/MailWidget.cpp
+++ b/Userland/Applications/Mail/MailWidget.cpp
@@ -103,7 +103,7 @@ bool MailWidget::connect_and_login()
if (server.is_empty()) {
auto result = GUI::MessageBox::show(window(), "Mail has no servers configured. Do you want configure them now?", "Error", GUI::MessageBox::Type::Error, GUI::MessageBox::InputType::YesNo);
if (result == GUI::MessageBox::ExecResult::Yes)
- Desktop::Launcher::open(URL::create_with_file_protocol("/bin/MailSettings"), "/bin/MailSettings");
+ Desktop::Launcher::open(URL::create_with_file_protocol("/bin/MailSettings"));
return false;
}