diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-04-16 18:17:03 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-16 18:17:03 +0200 |
commit | 23cf5381a0f94bafeb46d461477f5db0a71f08ad (patch) | |
tree | 87e604c05592eec665000482dd9c30b20d3cda5c | |
parent | Let rekonq work everytime with uppercase digited urls (diff) | |
download | rekonq-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...)
-rw-r--r-- | src/urlbar/urlresolver.cpp | 7 |
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; } } |