parent
a5ea4f7da2
commit
0b3e86e307
1 changed files with 5 additions and 3 deletions
|
@ -121,6 +121,11 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
|
||||||
// If there are no available builds, then they can't auto update.
|
// If there are no available builds, then they can't auto update.
|
||||||
enableUpdateButton(isCompatible);
|
enableUpdateButton(isCompatible);
|
||||||
|
|
||||||
|
if (isCompatible) {
|
||||||
|
// If there is an update, save its URL and work out its name
|
||||||
|
updateUrl = release->getDownloadUrl();
|
||||||
|
}
|
||||||
|
|
||||||
// Give the user the appropriate message
|
// Give the user the appropriate message
|
||||||
if (!needToUpdate) {
|
if (!needToUpdate) {
|
||||||
// If there's no need to update, tell them that. However we still allow them to run the
|
// If there's no need to update, tell them that. However we still allow them to run the
|
||||||
|
@ -137,9 +142,6 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
|
||||||
|
|
||||||
publishDate = release->getPublishDate().toString(Qt::DefaultLocaleLongDate);
|
publishDate = release->getPublishDate().toString(Qt::DefaultLocaleLongDate);
|
||||||
if (isCompatible) {
|
if (isCompatible) {
|
||||||
// If there is an update, save its URL and work out its name
|
|
||||||
updateUrl = release->getDownloadUrl();
|
|
||||||
|
|
||||||
int reply;
|
int reply;
|
||||||
reply = QMessageBox::question(
|
reply = QMessageBox::question(
|
||||||
this, tr("Update Available"),
|
this, tr("Update Available"),
|
||||||
|
|
Loading…
Reference in a new issue