File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments