1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +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;
}
QString encodedUrl = url.toEncoded();
QString stringUrl = url.toString();
if (url.toString() == "qupzilla:speeddial" || url.toString() == "about:blank") {
encodedUrl = "";
if (stringUrl == "qupzilla:speeddial" || stringUrl == "about:blank") {
stringUrl = "";
}
if (url.toEncoded() != text()) {
setText(encodedUrl);
setText(stringUrl);
}
p_QupZilla->statusBarMessage()->clearMessage();

View File

@ -62,7 +62,7 @@ void PopupLocationBar::setView(PopupWebView* view)
void PopupLocationBar::showUrl(const QUrl &url)
{
setText(url.toEncoded());
setText(url.toString());
setCursorPosition(0);
}