mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 08:29:33 +02:00
reset environment on domain-server change
This commit is contained in:
parent
aa0a97b959
commit
6f868a00eb
2 changed files with 4 additions and 1 deletions
|
@ -3525,6 +3525,9 @@ void Application::domainChanged(QString domain) {
|
||||||
|
|
||||||
// update the user's last domain in their Profile (which will propagate to data-server)
|
// update the user's last domain in their Profile (which will propagate to data-server)
|
||||||
_profile.updateDomain(domain);
|
_profile.updateDomain(domain);
|
||||||
|
|
||||||
|
// reset the environment so that we don't erroneously end up with multiple
|
||||||
|
_environment.resetToDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::nodeAdded(Node* node) {
|
void Application::nodeAdded(Node* node) {
|
||||||
|
|
|
@ -725,7 +725,7 @@ void updateDSHostname(const QString& domainServerHostname) {
|
||||||
newHostname = domainServerHostname;
|
newHostname = domainServerHostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the domain server hostname is new
|
// give our nodeList the new domain-server hostname
|
||||||
NodeList::getInstance()->setDomainHostname(newHostname);
|
NodeList::getInstance()->setDomainHostname(newHostname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue