Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
This change is not relevant for dev.

Change-Id: I4e1c9cd3d86481711d8c83d9fa88d21bb3ecb559
Reviewed-by: Timur Pocheptsov <[email protected]>
Reviewed-by: Mårten Nordheim <[email protected]>
  • Loading branch information
vohi committed Jun 10, 2020
1 parent 372d48b commit 9671a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/network/access/qnetworkaccessmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,8 +2120,11 @@ void QNetworkAccessManagerPrivate::_q_onlineStateChanged(bool isOnline)
if (statusMonitor.isEnabled()) {
auto previous = networkAccessible;
networkAccessible = isOnline ? QNetworkAccessManager::Accessible : QNetworkAccessManager::NotAccessible;
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
if (previous != networkAccessible)
emit q->networkAccessibleChanged(networkAccessible);
QT_WARNING_POP
return;
}

Expand Down

0 comments on commit 9671a68

Please sign in to comment.