From 8598b59d80d09caa499d14eed6bf2f20ea6ad01a Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 18 Dec 2011 17:43:32 +1000 Subject: [PATCH] Fix update last checked glitch --- UpdaterWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UpdaterWindow.cpp b/UpdaterWindow.cpp index 65d3efb1..0141adac 100644 --- a/UpdaterWindow.cpp +++ b/UpdaterWindow.cpp @@ -12,7 +12,7 @@ #include #include -#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;