Skip to content

Commit 809bd94

Browse files
zaryabkhan-rsravic-rs
authored andcommitted
Hyperlink changes for about Dialog
1 parent 584152f commit 809bd94

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/Main/AboutWidget.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,20 @@ AboutWidget::AboutWidget(const ProjectInfo &info,
3737
: QDialog{parent} {
3838
QLabel *label = new QLabel(this);
3939
QPushButton *close = new QPushButton("Close", this);
40+
4041
QString text = QString(
4142
"<p><b>%1 %2</b></p>"
4243
"<p><b>%3</b></p>"
4344
"<p>Build on %4</p>"
44-
"<p>From revision <a "
45-
"href=\"%5%6\">%6</a></p>"
46-
"<p>Build type: %7</p>")
45+
"<p>Build type: %5</p>")
4746
.arg(info.name, info.version, getTagLine(srcPath),
48-
__DATE__, info.url, info.git_hash, info.build_type);
47+
__DATE__, info.build_type);
48+
if (!info.url.isEmpty()) {
49+
text += QString(
50+
"<p>From revision <a "
51+
"href=\"%1%2\">%2</a></p>")
52+
.arg(info.url, info.git_hash);
53+
}
4954
if (info.showLicense) {
5055
text += QString("<p>%1</p>").arg(License());
5156
}

0 commit comments

Comments
 (0)