From 314c4ffcfa3c79a12c584f1480f20279bfd17dad Mon Sep 17 00:00:00 2001 From: Leonardo Murillo Date: Mon, 6 Jan 2014 09:24:29 -0600 Subject: [PATCH] Using applicationVersion() instead of const wherever version is specified --- interface/src/Application.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 93af683240..6df74a47d5 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -156,8 +156,6 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : // call Menu getInstance static method to set up the menu _window->setMenuBar(Menu::getInstance()); - qDebug("[VERSION] Build sequence: %i\n", BUILD_VERSION); - unsigned int listenPort = 0; // bind to an ephemeral port by default const char** constArgv = const_cast(argv); const char* portStr = getCmdOption(argc, constArgv, "--listenPort"); @@ -193,6 +191,8 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : setApplicationVersion(BUILD_VERSION); setOrganizationName(applicationInfo.value("organizationName").toString()); setOrganizationDomain(applicationInfo.value("organizationDomain").toString()); + + qDebug("[VERSION] Build sequence: %s\n", applicationVersion().toStdString().c_str()); _settings = new QSettings(this); @@ -4175,7 +4175,7 @@ void Application::attachNewHeadToNode(Node* newNode) { void Application::updateWindowTitle(){ QString title = ""; - QString buildVersion = " (build " + QString::number(BUILD_VERSION) + ")"; + QString buildVersion = " (build " + applicationVersion() + ")"; QString username = _profile.getUsername(); if(!username.isEmpty()){ title += _profile.getUsername();