Fix update last checked glitch

This commit is contained in:
Mark Watkins 2011-12-18 17:43:32 +10:00
parent 83799c0e70
commit 8598b59d80

View File

@ -12,7 +12,7 @@
#include <QCryptographicHash>
#include <QDesktopWidget>
#include "SleepLib/preferences.h"
#include "SleepLib/profiles.h"
#include "quazip/quazip.h"
#include "quazip/quazipfile.h"
#include "UpdaterWindow.h"
@ -473,6 +473,8 @@ void UpdaterWindow::upgradeNext()
ui->downloadTitle->setText("Update Complete!");
ui->FinishedButton->setVisible(true);
ui->downloadLabel->setText("Updates Complete. SleepyHead needs to restart now, click Finished to do so.");
PREF["Updates_LastChecked"]=QDateTime::currentDateTime();
PREF["VersionString"]=release->version;
} else {
ui->downloadTitle->setText("Update Failed :(");
success=false;