summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-04 07:08:29 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-04 07:08:29 (GMT)
commit265824fcfe2d9d39169b6c68b8bab3bd9b6ba17b (patch)
tree431dd88349521a11258b49c6bab1d0ae6f07cc85
parentd1d282d2ce37c8896e450477908e2313015caa96 (diff)
Return url too
-rw-r--r--CMakeLists.txt2
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.cpp4
-rw-r--r--webengineviewer/src/checkphishingurl/checkphishingurljob.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01205a4..3e3485b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
-set(PIM_VERSION "5.3.78")
+set(PIM_VERSION "5.3.79")
set(MESSAGELIB_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.3.40")
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
index e50fe87..826c509 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.cpp
@@ -53,7 +53,7 @@ void CheckPhishingUrlJob::start()
if (canStart()) {
const QString postRequest = createPostRequest();
if (postRequest.isEmpty()) {
- Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown);
+ Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown, mUrl);
deleteLater();
} else {
QNetworkRequest request(QUrl(QStringLiteral("https://safebrowsing.googleapis.com/v4/threatMatches:find")));
@@ -67,7 +67,7 @@ void CheckPhishingUrlJob::start()
connect(reply, static_cast<void (QNetworkReply::*)(QNetworkReply::NetworkError)>(&QNetworkReply::error), this, &CheckPhishingUrlJob::slotError);
}
} else {
- Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown);
+ Q_EMIT result(WebEngineViewer::CheckPhishingUrlJob::Unknown, mUrl);
deleteLater();
}
}
diff --git a/webengineviewer/src/checkphishingurl/checkphishingurljob.h b/webengineviewer/src/checkphishingurl/checkphishingurljob.h
index 9e70c94..3c830a1 100644
--- a/webengineviewer/src/checkphishingurl/checkphishingurljob.h
+++ b/webengineviewer/src/checkphishingurl/checkphishingurljob.h
@@ -48,7 +48,7 @@ public:
QString createPostRequest();
Q_SIGNALS:
- void result(WebEngineViewer::CheckPhishingUrlJob::UrlStatus status);
+ void result(WebEngineViewer::CheckPhishingUrlJob::UrlStatus status, const QUrl &url);
private:
void slotError(QNetworkReply::NetworkError error);