From 6fca2134d2f677c1e41ecaa0e8fdf643ba743e8c Mon Sep 17 00:00:00 2001 From: MacDue Date: Mon, 6 Jun 2022 14:39:17 +0100 Subject: [PATCH] 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. --- Userland/Applications/Mail/MailWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }