mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-12 19:15:49 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString AddressManager::getHost() const {
|
|
||||||
if (isPossiblePlaceName(_domainURL.host())) {
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
|
|
||||||
return _domainURL.host();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AddressManager::setDomainInfo(const QUrl& domainURL, LookupTrigger trigger) {
|
bool AddressManager::setDomainInfo(const QUrl& domainURL, LookupTrigger trigger) {
|
||||||
const QString hostname = domainURL.host();
|
const QString hostname = domainURL.host();
|
||||||
quint16 port = domainURL.port();
|
quint16 port = domainURL.port();
|
||||||
|
|
|
@ -160,7 +160,7 @@ public:
|
||||||
QString getPlaceName() const;
|
QString getPlaceName() const;
|
||||||
QString getDomainID() const;
|
QString getDomainID() const;
|
||||||
|
|
||||||
QString getHost() const;
|
QString getHost() const { return _domainURL.host(); }
|
||||||
|
|
||||||
void setPositionGetter(PositionGetter positionGetter) { _positionGetter = positionGetter; }
|
void setPositionGetter(PositionGetter positionGetter) { _positionGetter = positionGetter; }
|
||||||
void setOrientationGetter(OrientationGetter orientationGetter) { _orientationGetter = orientationGetter; }
|
void setOrientationGetter(OrientationGetter orientationGetter) { _orientationGetter = orientationGetter; }
|
||||||
|
|
Loading…
Reference in a new issue