Don't save user location if not connected to domain

This commit is contained in:
David Rowe 2018-06-08 15:04:01 +12:00
parent 1646f543cd
commit 8e1e93abb0

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;
}