From c63ccf914f016048d2edd52c5d1d8d5bee6722c7 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 24 Apr 2015 12:45:01 -0300 Subject: [PATCH] Keep last update information so we can show it again (fix #639) Now the last update information retrieved from the HTTP request, is saved in the configuration file so we can reuse it when the program is restarted. Changes: * Add support to compare two semvers * Add new_version/new_url options to preferences * Remove convert_to for base::Version (now this class is constructed from strings only) --- data/pref.xml | 2 + src/app/check_update.cpp | 35 ++++++-- src/app/check_update.h | 1 + src/base/convert_to.cpp | 30 ------- src/base/convert_to.h | 4 - src/base/version.cpp | 99 ++++++++++++++++------- src/base/version.h | 65 +-------------- src/base/version_tests.cpp | 151 +++++++---------------------------- src/updater/check_update.cpp | 2 +- src/updater/check_update.h | 7 +- 10 files changed, 138 insertions(+), 258 deletions(-) diff --git a/data/pref.xml b/data/pref.xml index 48faf68da..de23ef4b6 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -95,6 +95,8 @@