mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +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 connectionStatus = nodeList->getDomainHandler().isConnected() ? "" : " (NOT CONNECTED) ";
|
||||||
QString username = AccountManager::getInstance().getAccountInfo().getUsername();
|
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())
|
QString title = QString() + (!username.isEmpty() ? username + " @ " : QString())
|
||||||
+ DependencyManager::get<AddressManager>()->getRootPlaceName() + connectionStatus + buildVersion;
|
+ currentPlaceName + connectionStatus + buildVersion;
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
// crashes with vs2013/win32
|
// crashes with vs2013/win32
|
||||||
|
|
Loading…
Reference in a new issue