mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-08 07:02:25 +02:00
Merge pull request #10531 from Atlante45/fix/current-address
Never store an address with an empty host
This commit is contained in:
commit
ca87b792de
1 changed files with 7 additions and 1 deletions
|
@ -136,7 +136,13 @@ void AddressManager::goForward() {
|
|||
}
|
||||
|
||||
void AddressManager::storeCurrentAddress() {
|
||||
currentAddressHandle.set(currentAddress());
|
||||
auto url = currentAddress();
|
||||
|
||||
if (!url.host().isEmpty()) {
|
||||
currentAddressHandle.set(url);
|
||||
} else {
|
||||
qCWarning(networking) << "Ignoring attempt to save current address with an empty host" << url;
|
||||
}
|
||||
}
|
||||
|
||||
QString AddressManager::currentPath(bool withOrientation) const {
|
||||
|
|
Loading…
Reference in a new issue