mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 01:12:48 +02:00
Merge pull request #12819 from Atlante45/fix/location-hostname
Fix location.hostname
This commit is contained in:
commit
d281d7b2cb
2 changed files with 1 additions and 9 deletions
|
@ -768,14 +768,6 @@ bool AddressManager::setHost(const QString& host, LookupTrigger trigger, quint16
|
|||
return false;
|
||||
}
|
||||
|
||||
QString AddressManager::getHost() const {
|
||||
if (isPossiblePlaceName(_domainURL.host())) {
|
||||
return QString();
|
||||
}
|
||||
|
||||
return _domainURL.host();
|
||||
}
|
||||
|
||||
bool AddressManager::setDomainInfo(const QUrl& domainURL, LookupTrigger trigger) {
|
||||
const QString hostname = domainURL.host();
|
||||
quint16 port = domainURL.port();
|
||||
|
|
|
@ -160,7 +160,7 @@ public:
|
|||
QString getPlaceName() const;
|
||||
QString getDomainID() const;
|
||||
|
||||
QString getHost() const;
|
||||
QString getHost() const { return _domainURL.host(); }
|
||||
|
||||
void setPositionGetter(PositionGetter positionGetter) { _positionGetter = positionGetter; }
|
||||
void setOrientationGetter(OrientationGetter orientationGetter) { _orientationGetter = orientationGetter; }
|
||||
|
|
Loading…
Reference in a new issue