diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-24 16:03:17 +0000 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-25 16:22:01 +0000 |
commit | ec3001c3490b14de3b242dce6af97ec519433305 (patch) | |
tree | 5f2e81c91eee4e506440d6d87878df556b0a5fea /src/plugins/geoservices/osm/qgeotileproviderosm.cpp | |
parent | d983c7edac94b5e397b781b3f7a9b119d1996318 (diff) | |
download | qtlocation-ec3001c3490b14de3b242dce6af97ec519433305.tar.gz |
Revert "qtlocation: remove uses of the deprecated member-function"
This reverts commit b482674e51c097fccffa1e1cc32b4843ad393894.
Reason for revert: naming in QProcess is considered to be the correct one.
Change-Id: I6722adfc06b351c76fb432628a678c4ce887d594
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeotileproviderosm.cpp')
-rw-r--r-- | src/plugins/geoservices/osm/qgeotileproviderosm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/osm/qgeotileproviderosm.cpp b/src/plugins/geoservices/osm/qgeotileproviderosm.cpp index 13b9f47e..1eedddb1 100644 --- a/src/plugins/geoservices/osm/qgeotileproviderosm.cpp +++ b/src/plugins/geoservices/osm/qgeotileproviderosm.cpp @@ -383,8 +383,8 @@ void TileProvider::onNetworkReplyFinished() QObject errorEmitter; QMetaObject::Connection errorEmitterConnection = connect(&errorEmitter, &QObject::destroyed, [this](){ this->resolutionError(this); }); - if (reply->networkError() != QNetworkReply::NoError) { - handleError(reply->networkError()); + if (reply->error() != QNetworkReply::NoError) { + handleError(reply->error()); return; } m_status = Invalid; |