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:
parent
cac23820c5
commit
81d1b129f7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue