From 2d0a4e794dd10818dc830c8384fc0f76f0184b7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20=C5=BBarnowiecki?= <dolohow@outlook.com>
Date: Thu, 11 May 2017 14:32:56 +0200
Subject: [PATCH] fix(settings): compute toxcore version in runtime

Past this change toxcore version was set during compilation.  This
caused a problem when you changed version of toxcore while qTox would
still display its old.  This behaviour was misleading.
---
 src/widget/form/settings/aboutform.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/widget/form/settings/aboutform.cpp b/src/widget/form/settings/aboutform.cpp
index 15043b714..ba87dab06 100644
--- a/src/widget/form/settings/aboutform.cpp
+++ b/src/widget/form/settings/aboutform.cpp
@@ -73,9 +73,9 @@ void AboutForm::replaceVersions()
     // TODO: When we finally have stable releases: build-in a way to tell
     // nightly builds from stable releases.
 
-    QString TOXCORE_VERSION = QString::number(TOX_VERSION_MAJOR) + "."
-                              + QString::number(TOX_VERSION_MINOR) + "."
-                              + QString::number(TOX_VERSION_PATCH);
+    QString TOXCORE_VERSION = QString::number(tox_version_major()) + "."
+                              + QString::number(tox_version_minor()) + "."
+                              + QString::number(tox_version_patch());
 
     bodyUI->youAreUsing->setText(tr("You are using qTox version %1.").arg(QString(GIT_DESCRIBE)));