summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-16 18:17:03 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-16 18:17:03 +0200
commit23cf5381a0f94bafeb46d461477f5db0a71f08ad (patch)
tree87e604c05592eec665000482dd9c30b20d3cda5c /src/urlbar
parentLet rekonq work everytime with uppercase digited urls (diff)
downloadrekonq-23cf5381a0f94bafeb46d461477f5db0a71f08ad.tar.xz
Really fix Upper case urls management
Consider also eventual upper case local urls (eg: rekonq git clone here is in file:///SW/SRC/rekonq dir...)
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/urlresolver.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 1ba2a873..6d6a2378 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -252,12 +252,15 @@ UrlSearchList UrlResolver::orderLists()
// QUrl from User Input (easily the best solution... )
void UrlResolver::computeQurlFromUserInput()
{
- QString url = _typedString.toLower();
+ QString url = _typedString;
QUrl urlFromUserInput = QUrl::fromUserInput(url);
if (urlFromUserInput.isValid())
{
+ QString urlString = urlFromUserInput.toString();
+ if (!urlFromUserInput.isLocalFile())
+ urlString = urlString.toLower();
QString gTitle = i18nc("Browse a website", "Browse");
- UrlSearchItem gItem(UrlSearchItem::Browse, urlFromUserInput.toString(), gTitle);
+ UrlSearchItem gItem(UrlSearchItem::Browse, urlString, gTitle);
_qurlFromUserInput << gItem;
}
}