mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
put current domain hostname if no place name present
This commit is contained in:
parent
6e1ba17c6e
commit
6d2c87c7a3
1 changed files with 7 additions and 1 deletions
|
@ -3113,8 +3113,14 @@ void Application::updateWindowTitle(){
|
|||
|
||||
QString connectionStatus = nodeList->getDomainHandler().isConnected() ? "" : " (NOT CONNECTED) ";
|
||||
QString username = AccountManager::getInstance().getAccountInfo().getUsername();
|
||||
QString currentPlaceName = DependencyManager::get<AddressManager>()->getRootPlaceName();
|
||||
|
||||
if (currentPlaceName.isEmpty()) {
|
||||
currentPlaceName = nodeList->getDomainHandler().getHostname();
|
||||
}
|
||||
|
||||
QString title = QString() + (!username.isEmpty() ? username + " @ " : QString())
|
||||
+ DependencyManager::get<AddressManager>()->getRootPlaceName() + connectionStatus + buildVersion;
|
||||
+ currentPlaceName + connectionStatus + buildVersion;
|
||||
|
||||
#ifndef WIN32
|
||||
// crashes with vs2013/win32
|
||||
|
|
Loading…
Reference in a new issue