Fix issues with new updater; fix #2465 (#2468)

* fix #2465
This commit is contained in:
ctrlaltca 2017-03-13 23:21:15 +01:00 committed by GitHub
parent f9a025081a
commit 2817f54c96
3 changed files with 12 additions and 5 deletions

View file

@ -108,12 +108,13 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas
//If there's no need to update, tell them that. However we still allow them to run the
//downloader themselves if there's a compatible build
QMessageBox::information(this, tr("Cockatrice Update"), tr("Your version of Cockatrice is up to date."));
return;
}
publishDate = release->getPublishDate().toString(Qt::DefaultLocaleLongDate);
if (isCompatible) {
//If there is an update, save its URL and work out its name
updateUrl = release->getDownloadUrl();
publishDate = release->getPublishDate().toString(Qt::DefaultLocaleLongDate);
QMessageBox::StandardButton reply;
reply = QMessageBox::question(this, "Update Available",