summaryrefslogtreecommitdiff
path: root/kwebapp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-07-07 22:52:48 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-07-07 22:52:48 +0200
commit61095adced58528fce80c45a7154741c9d4783dd (patch)
tree6d051ef8ea95b07f176819903b7e64578da1b948 /kwebapp
parentClean up right icons before updating them (diff)
downloadrekonq-61095adced58528fce80c45a7154741c9d4783dd.tar.xz
Krazy fixes
Diffstat (limited to 'kwebapp')
-rw-r--r--kwebapp/urlresolver.cpp7
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());