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:19:09 +0200
commitbdbf445048546c79c52a39b94ae45b1024edd23c (patch)
tree2f6f90299021a4d53fd070f2def0e3bd3cc6ff66 /src/urlbar
parentLet rekonq work everytime with uppercase digited urls (diff)
downloadrekonq-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.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;
}
}