summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filterurljob.cpp5
-rw-r--r--src/filterurljob.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/filterurljob.cpp b/src/filterurljob.cpp
index bc6118d7..c887ac62 100644
--- a/src/filterurljob.cpp
+++ b/src/filterurljob.cpp
@@ -28,15 +28,14 @@
#include "filterurljob.h"
// KDE Includes
-#include <KUriFilter>
#include <KUriFilterData>
-
FilterUrlJob::FilterUrlJob(WebView *view, const QString &urlString, QObject *parent)
: Job(parent)
, _view(view)
, _urlString(urlString)
{
+ uriFilter = KUriFilter::self();
}
@@ -59,7 +58,7 @@ void FilterUrlJob::run()
KUriFilterData data(_urlString);
data.setCheckForExecutables(false); // if true, queries like "rekonq" or "dolphin" are considered as executables
- if (KUriFilter::self()->filterUri(data) && data.uriType() != KUriFilterData::Error)
+ if (uriFilter->filterUri(data) && data.uriType() != KUriFilterData::Error)
{
QString tempUrlString = data.uri().url();
_url = KUrl(tempUrlString);
diff --git a/src/filterurljob.h b/src/filterurljob.h
index 6ab10695..c10c5e35 100644
--- a/src/filterurljob.h
+++ b/src/filterurljob.h
@@ -35,6 +35,7 @@
// KDE Includes
#include <KUrl>
+#include <KUriFilter>
#include <ThreadWeaver/Job>
// Qt Includes
@@ -59,6 +60,8 @@ private:
WebView *_view;
QString _urlString;
KUrl _url;
+ KUriFilter *uriFilter;
+
};
#endif // FILTER_URL_JOB_H