summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-16 17:49:48 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-16 17:51:13 +0200
commit95ae6a876b414f20b3aca64c6b5bce3e372b2199 (patch)
treeb1d5bf184e67408c0b73612d534c663a4fff8667 /src
parentGet extremely sure rekonq menu button exists when used :) (diff)
downloadrekonq-95ae6a876b414f20b3aca64c6b5bce3e372b2199.tar.xz
Let rekonq work everytime with uppercase digited urls
BUG:284829 Backported from master branch
Diffstat (limited to 'src')
-rw-r--r--src/urlbar/urlresolver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 67f4947a..1ba2a873 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -163,7 +163,8 @@ UrlSearchList UrlResolver::orderLists()
bool webSearchFirst = false;
// Browse & Search results
UrlSearchList browseSearch;
- if (_browseRegexp.indexIn(_typedString) != -1)
+ QString lowerTypedString = _typedString.toLower();
+ if (_browseRegexp.indexIn(lowerTypedString) != -1)
{
webSearchFirst = true;
browseSearch << _webSearches;
@@ -251,7 +252,7 @@ UrlSearchList UrlResolver::orderLists()
// QUrl from User Input (easily the best solution... )
void UrlResolver::computeQurlFromUserInput()
{
- QString url = _typedString;
+ QString url = _typedString.toLower();
QUrl urlFromUserInput = QUrl::fromUserInput(url);
if (urlFromUserInput.isValid())
{