Printing build version on title

This commit is contained in:
Leonardo Murillo 2013-12-16 13:29:17 -06:00
parent 58350cf596
commit 06d14436bd

View file

@ -4106,12 +4106,14 @@ void Application::attachNewHeadToNode(Node* newNode) {
void Application::updateWindowTitle(){
QString title = "";
QString buildVersion = " (build " + QString::number(BUILD_VERSION) + ")";
QString username = _profile.getUsername();
if(!username.isEmpty()){
title += _profile.getUsername();
title += _profile.getUsername();s
title += " @ ";
}
title += _profile.getLastDomain();
title += buildVersion;
qDebug("Application title set to: %s.\n", title.toStdString().c_str());
_window->setWindowTitle(title);