mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
correctly return empty string for domain ID if it is null
This commit is contained in:
parent
523a4e6ba2
commit
e5a54116dc
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ QString LocationScriptingInterface::getHostname() {
|
|||
}
|
||||
|
||||
QString LocationScriptingInterface::getDomainID() const {
|
||||
return uuidStringWithoutCurlyBraces(NodeList::getInstance()->getDomainHandler().getUUID());
|
||||
const QUuid& domainID = NodeList::getInstance()->getDomainHandler().getUUID();
|
||||
return domainID.isNull() ? "" : uuidStringWithoutCurlyBraces(domainID);
|
||||
}
|
||||
|
||||
void LocationScriptingInterface::assign(const QString& url) {
|
||||
|
|
Loading…
Reference in a new issue