Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -4003,18 +4003,12 @@ void Application::setMenuShortcutsEnabled(bool enabled) { · 4002 unmodified lines | ||
| 4003 | 4003 | } |
| 4004 | 4004 | |
| 4005 | 4005 | void Application::updateWindowTitle(){ |
| 4006 | − QString title = ""; | |
| 4007 | − | |
| 4006 | + | |
| 4008 | 4007 | QString buildVersion = " (build " + applicationVersion() + ")"; |
| 4009 | − | |
| 4010 | − QString username = _profile.getUsername(); | |
| 4011 | − if(!username.isEmpty()){ | |
| 4012 | − title += username; | |
| 4013 | − title += " @ "; | |
| 4014 | − } | |
| 4008 | + NodeList* nodeList = NodeList::getInstance(); | |
| 4015 | 4009 | |
| 4016 | − title += NodeList::getInstance()->getDomainHostname(); | |
| 4017 | − title += buildVersion; | |
| 4010 | + QString title = QString() + _profile.getUsername() + " " + nodeList->getOwnerUUID().toString() | |
| 4011 | + + " @ " + nodeList->getDomainHostname() + buildVersion; | |
| 4018 | 4012 | |
| 4019 | 4013 | qDebug("Application title set to: %s", title.toStdString().c_str()); |
| 4020 | 4014 | _window->setWindowTitle(title); |