Fallback to website URL from CppUtilities::applicationInfo
This commit is contained in:
parent
4e30e7c45c
commit
3c4ff02a96
|
@ -71,11 +71,11 @@ AboutDialog::AboutDialog(QWidget *parent, const QString &applicationName, const
|
||||||
m_ui->versionLabel->setToolTip(QStringLiteral("<p>") % tr("Linked against:") % QStringLiteral("</p><ul><li>")
|
m_ui->versionLabel->setToolTip(QStringLiteral("<p>") % tr("Linked against:") % QStringLiteral("</p><ul><li>")
|
||||||
% linkedAgainst.join(QStringLiteral("</li><li>")) % QStringLiteral("</li></ul>"));
|
% linkedAgainst.join(QStringLiteral("</li><li>")) % QStringLiteral("</li></ul>"));
|
||||||
}
|
}
|
||||||
if (!website.isEmpty()) {
|
if (!website.isEmpty() || CppUtilities::applicationInfo.url) {
|
||||||
m_ui->websiteLabel->setText(tr("For updates and bug reports visit the <a href=\"%1\" "
|
m_ui->websiteLabel->setText(tr("For updates and bug reports visit the <a href=\"%1\" "
|
||||||
"style=\"text-decoration: underline; color: palette(link);\">project "
|
"style=\"text-decoration: underline; color: palette(link);\">project "
|
||||||
"website</a>.")
|
"website</a>.")
|
||||||
.arg(website));
|
.arg(!website.isEmpty() ? website : QString::fromUtf8(CppUtilities::applicationInfo.url)));
|
||||||
} else {
|
} else {
|
||||||
m_ui->websiteLabel->hide();
|
m_ui->websiteLabel->hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue