From 81d1b129f7f746d3e12346b854b1c69d10e31dcb Mon Sep 17 00:00:00 2001 From: Simon Wanner Date: Mon, 19 Feb 2024 19:39:43 +0100 Subject: [PATCH] Ladybird/QT: Avoid incorrect round trip via QUrl QUrl::toString reverses the Unicode->ASCII conversion that already occurred here. The text of m_location_edit is already in the format we expect, so let's just convert QString->AK::URL directly, instead of taking the detour QString->QUrl->AK::URL --- Ladybird/Qt/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ladybird/Qt/Tab.cpp b/Ladybird/Qt/Tab.cpp index 40c8669bc2..2265ed0ea5 100644 --- a/Ladybird/Qt/Tab.cpp +++ b/Ladybird/Qt/Tab.cpp @@ -715,7 +715,7 @@ void Tab::copy_link_url(URL const& url) void Tab::location_edit_return_pressed() { - navigate(ak_url_from_qurl(m_location_edit->text())); + navigate(ak_url_from_qstring(m_location_edit->text())); } void Tab::open_file()