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:19:09 +0200 |
commit | bdbf445048546c79c52a39b94ae45b1024edd23c (patch) | |
tree | 2f6f90299021a4d53fd070f2def0e3bd3cc6ff66 /src/urlbar | |
parent | Let rekonq work everytime with uppercase digited urls (diff) | |
download | rekonq-bdbf445048546c79c52a39b94ae45b1024edd23c.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...)
Backported from master branch
Diffstat (limited to 'src/urlbar')
-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; } } |