1
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:
nowrep 2012-02-15 14:06:28 +01:00
parent 39fbb8f130
commit 04ec0cfcef
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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);
} }