Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(settings): compute toxcore version in runtime
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Łukasz Żarnowiecki committed May 11, 2017
1 parent e4d4f14 commit 2d0a4e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widget/form/settings/aboutform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit 2d0a4e7

Please sign in to comment.