2
0
forked from Ivasoft/DSView

fix: The link of the about dialog can't open

This commit is contained in:
dreamsourcelabTAI
2023-03-30 12:15:01 +08:00
parent 954d798b75
commit 0a4ce3d1d2

View File

@@ -61,11 +61,16 @@ About::About(QWidget *parent) :
.arg(QApplication::applicationVersion())
.arg(arch);
QString site_url = QApplication::organizationDomain();
if (site_url.startsWith("http") == false){
site_url = "https://" + site_url;
}
QString url = tr("Website: <a href=\"%1\" style=\"color:#C0C0C0\">%1</a><br />"
"Github: <a href=\"%2\" style=\"color:#C0C0C0\">%2</a><br />"
"Copyright:<a href=\"%3\" style=\"color:#C0C0C0\">%3</a><br />"
"Copyright: <label href=\"#\" style=\"color:#C0C0C0\">%3</label><br />"
"<br /><br />")
.arg(QApplication::organizationDomain())
.arg(site_url)
.arg("https://github.com/DreamSourceLab/DSView")
.arg(tr("© DreamSourceLab. All rights reserved."));