From 17436a7b4353e136bfa4d44d72cd2afe58c88a37 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 12 Dec 2016 18:26:06 +0000 Subject: [PATCH] Fix Qt version compatibility compile issue git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7380 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- SampleDownloader/RemoteFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SampleDownloader/RemoteFile.cpp b/SampleDownloader/RemoteFile.cpp index 5aac13b4d..01bfc3f18 100644 --- a/SampleDownloader/RemoteFile.cpp +++ b/SampleDownloader/RemoteFile.cpp @@ -133,9 +133,9 @@ void RemoteFile::download (QUrl url) reply_ = network_manager_->get (request); } - connect (reply_, &QNetworkReply::finished, this, &RemoteFile::reply_finished); - connect (reply_, &QNetworkReply::readyRead, this, &RemoteFile::store); - connect (reply_, &QNetworkReply::downloadProgress + connect (reply_.data (), &QNetworkReply::finished, this, &RemoteFile::reply_finished); + connect (reply_.data (), &QNetworkReply::readyRead, this, &RemoteFile::store); + connect (reply_.data (), &QNetworkReply::downloadProgress , [this] (qint64 bytes_received, qint64 total_bytes) { // report progress of wanted file if (is_valid_)