diff options
author | Rohan Garg <rohangarg@kubuntu.org> | 2010-10-15 00:12:12 +0530 |
---|---|---|
committer | Rohan Garg <rohangarg@kubuntu.org> | 2010-10-15 00:12:12 +0530 |
commit | e2f5cb2df53802dc1be2f4257ac414227dd2093e (patch) | |
tree | 92414254f2eb5e0faa402f84efd1681fc9f09a17 /src/urlbar/urlresolver.cpp | |
parent | Optimize rekonq to handle more protocols (diff) | |
download | rekonq-e2f5cb2df53802dc1be2f4257ac414227dd2093e.tar.xz |
Better protocol resolution for URL bar
Diffstat (limited to 'src/urlbar/urlresolver.cpp')
-rw-r--r-- | src/urlbar/urlresolver.cpp | 3 |
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"; |