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

fix #1977 not link if no GIT_VERSION

This commit is contained in:
PKEv 2015-07-21 01:03:56 +03:00
parent b13cf301f9
commit 8b524e54e2

View File

@ -30,6 +30,8 @@ AboutForm::AboutForm() :
//to-do: when we finally have stable releases: build-in a way to tell
//nightly builds from stable releases.
bodyUI->label_4->setText(bodyUI->label_4->text().replace("GIT_VERSION", QString(GIT_VERSION)));
if (QString(GIT_VERSION).indexOf(" ") > -1)
bodyUI->label_4->setOpenExternalLinks(false);
Translator::registerHandler(std::bind(&AboutForm::retranslateUi, this), this);
}