This commit is contained in:
parent
108d33a566
commit
f02c39ca54
|
@ -31,11 +31,22 @@ Dialog_upgrade::Dialog_upgrade(class VersionDll *versionDll, HGVersionInfo *vers
|
|||
else
|
||||
{
|
||||
ui->pbtn_upgrade->setVisible(true);
|
||||
ui->label_detectResult->setText(tr("Discover the new version : ") +
|
||||
m_versionInfo[0].version +
|
||||
tr(" ,the current version is : ") + currVersion + "\n" + "\n" +
|
||||
tr("upgrade contents: \n") +
|
||||
m_versionInfo[0].desc + "\n");
|
||||
QString str(m_versionInfo[0].desc);
|
||||
if (!str.isEmpty())
|
||||
{
|
||||
ui->label_detectResult->setText(tr("Discover the new version : ") +
|
||||
m_versionInfo[0].version +
|
||||
tr(" ,the current version is : ") + currVersion + "\n" + "\n" +
|
||||
tr("upgrade contents: \n") +
|
||||
m_versionInfo[0].desc + "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->label_detectResult->setText(tr("Discover the new version : ") +
|
||||
m_versionInfo[0].version +
|
||||
tr(" ,the current version is : ") + currVersion);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue