mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
Don't save user location if not connected to domain
This commit is contained in:
parent
1646f543cd
commit
8e1e93abb0
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue