reset environment on domain-server change

This commit is contained in:
Stephen Birarda 2013-10-10 16:34:35 -07:00
parent aa0a97b959
commit 6f868a00eb
2 changed files with 4 additions and 1 deletions

View file

@ -3525,6 +3525,9 @@ void Application::domainChanged(QString domain) {
// update the user's last domain in their Profile (which will propagate to data-server)
_profile.updateDomain(domain);
// reset the environment so that we don't erroneously end up with multiple
_environment.resetToDefault();
}
void Application::nodeAdded(Node* node) {

View file

@ -725,7 +725,7 @@ void updateDSHostname(const QString& domainServerHostname) {
newHostname = domainServerHostname;
}
// check if the domain server hostname is new
// give our nodeList the new domain-server hostname
NodeList::getInstance()->setDomainHostname(newHostname);
}