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:49:48 +0200
commite74a926619924a5d49f462e6707462db2c545f35 (patch)
treeb86e3007bdb92dad18a4458be70a344c4c0edbac /src
parentGet extremely sure rekonq menu button exists when used :) (diff)
downloadrekonq-e74a926619924a5d49f462e6707462db2c545f35.tar.xz
Let rekonq work everytime with uppercase digited urls
BUG:284829
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())
{