1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

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
This commit is contained in:
Simon Wanner 2024-02-19 19:39:43 +01:00 committed by Tim Flynn
parent cac23820c5
commit 81d1b129f7

View file

@ -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()