1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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.
This commit is contained in:
Łukasz Żarnowiecki 2017-05-11 14:32:56 +02:00
parent e4d4f14793
commit 2d0a4e794d

View File

@ -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)));