mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
update the window title when the domain changes or the username changes
This commit is contained in:
parent
dc420beaf2
commit
248f59325c
1 changed files with 4 additions and 4 deletions
|
@ -534,6 +534,7 @@ void Application::resetProfile(const QString& username) {
|
||||||
// call the destructor on the old profile and construct a new one
|
// call the destructor on the old profile and construct a new one
|
||||||
(&_profile)->~Profile();
|
(&_profile)->~Profile();
|
||||||
new (&_profile) Profile(username);
|
new (&_profile) Profile(username);
|
||||||
|
updateWindowTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::controlledBroadcastToNodes(unsigned char* broadcastData, size_t dataBytes,
|
void Application::controlledBroadcastToNodes(unsigned char* broadcastData, size_t dataBytes,
|
||||||
|
@ -3805,12 +3806,11 @@ void Application::updateWindowTitle(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::domainChanged(QString domain) {
|
void Application::domainChanged(QString domain) {
|
||||||
qDebug("Application title set to: %s.\n", domain.toStdString().c_str());
|
|
||||||
_window->setWindowTitle(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);
|
||||||
|
|
||||||
|
updateWindowTitle();
|
||||||
|
|
||||||
// reset the environment so that we don't erroneously end up with multiple
|
// reset the environment so that we don't erroneously end up with multiple
|
||||||
_environment.resetToDefault();
|
_environment.resetToDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue