Merge pull request #13337 from ctrlaltdavid/21887

Don't save user location if not connected to domain
This commit is contained in:
John Conklin II 2018-06-11 11:09:57 -07:00 committed by GitHub
commit 6794fedf5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,11 @@ void AddressManager::storeCurrentAddress() {
// be loaded over http(s)
// url.scheme() == URL_SCHEME_HTTP ||
// url.scheme() == URL_SCHEME_HTTPS ||
currentAddressHandle.set(url);
if (isConnected()) {
currentAddressHandle.set(url);
} else {
qCWarning(networking) << "Ignoring attempt to save current address because not connected to domain:" << url;
}
} else {
qCWarning(networking) << "Ignoring attempt to save current address with an invalid url:" << url;
}