mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +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
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/skyrising
Commit: 81d1b129f7
Pull-request: https://github.com/SerenityOS/serenity/pull/23288
Reviewed-by: https://github.com/trflynn89
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