mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Showing decoded url in locationbar now instead of percent encoded.
- it will now show urls with non-ascii characters prettier - however it will NOT decode url domain from punycode back to unicode
This commit is contained in:
parent
39fbb8f130
commit
04ec0cfcef
|
@ -199,14 +199,14 @@ void LocationBar::showUrl(const QUrl &url)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString encodedUrl = url.toEncoded();
|
QString stringUrl = url.toString();
|
||||||
|
|
||||||
if (url.toString() == "qupzilla:speeddial" || url.toString() == "about:blank") {
|
if (stringUrl == "qupzilla:speeddial" || stringUrl == "about:blank") {
|
||||||
encodedUrl = "";
|
stringUrl = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.toEncoded() != text()) {
|
if (url.toEncoded() != text()) {
|
||||||
setText(encodedUrl);
|
setText(stringUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
p_QupZilla->statusBarMessage()->clearMessage();
|
p_QupZilla->statusBarMessage()->clearMessage();
|
||||||
|
|
|
@ -62,7 +62,7 @@ void PopupLocationBar::setView(PopupWebView* view)
|
||||||
|
|
||||||
void PopupLocationBar::showUrl(const QUrl &url)
|
void PopupLocationBar::showUrl(const QUrl &url)
|
||||||
{
|
{
|
||||||
setText(url.toEncoded());
|
setText(url.toString());
|
||||||
setCursorPosition(0);
|
setCursorPosition(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user