summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@kubuntu.org>2010-10-15 00:12:12 +0530
committerRohan Garg <rohangarg@kubuntu.org>2010-10-15 00:12:12 +0530
commite2f5cb2df53802dc1be2f4257ac414227dd2093e (patch)
tree92414254f2eb5e0faa402f84efd1681fc9f09a17
parentOptimize rekonq to handle more protocols (diff)
downloadrekonq-e2f5cb2df53802dc1be2f4257ac414227dd2093e.tar.xz
Better protocol resolution for URL bar
-rw-r--r--src/urlbar/urlresolver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urlbar/urlresolver.cpp b/src/urlbar/urlresolver.cpp
index 8ecc5537..71d6e69c 100644
--- a/src/urlbar/urlresolver.cpp
+++ b/src/urlbar/urlresolver.cpp
@@ -42,6 +42,7 @@
#include <KService>
#include <KConfig>
#include <KConfigGroup>
+#include <KProtocolInfo>
// Qt Includes
#include <QByteArray>
@@ -77,7 +78,7 @@ UrlResolver::UrlResolver(const QString &typedUrl)
{
kDebug() << "browse regexp empty. Setting value..";
- QString protocol = "^(http://|https://|file://|ftp://|man:|info:|apt:|about:)";
+ QString protocol = QString("^(%1)").arg(KProtocolInfo::protocols().join("|"));
QString localhost = "^localhost";