diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-07-07 22:52:48 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-07-07 22:52:48 +0200 |
commit | 61095adced58528fce80c45a7154741c9d4783dd (patch) | |
tree | 6d051ef8ea95b07f176819903b7e64578da1b948 /kwebapp | |
parent | Clean up right icons before updating them (diff) | |
download | rekonq-61095adced58528fce80c45a7154741c9d4783dd.tar.xz |
Krazy fixes
Diffstat (limited to 'kwebapp')
-rw-r--r-- | kwebapp/urlresolver.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kwebapp/urlresolver.cpp b/kwebapp/urlresolver.cpp index 173dc613..c56e5a94 100644 --- a/kwebapp/urlresolver.cpp +++ b/kwebapp/urlresolver.cpp @@ -35,6 +35,11 @@ #include <KProtocolInfo> #include <KDebug> +// Qt Includes +#include <QLatin1String> + +#define QL1S(x) QLatin1String(x) + // NOTE // default kurifilter plugin list (at least in my box): @@ -67,7 +72,7 @@ KUrl UrlResolver::urlFromTextTyped(const QString &typedText) if (urlFromUserInput.isValid()) { // ensure http(s) hosts are lower cases - if (urlFromUserInput.scheme().startsWith("http")) + if (urlFromUserInput.scheme().startsWith(QL1S("http"))) { QString hst = urlFromUserInput.host(); urlFromUserInput.setHost(hst.toLower()); |