mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: correct error in qPrefUpdateManager
make next_check (in qPrefUpdateManager) long instead of string Correct test cases (compare time_t not strings) Add test case to check time_t works as expected Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
fa62ffdbf0
commit
62672276d0
5 changed files with 31 additions and 15 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
static bool dont_check_for_updates() { return prefs.update_manager.dont_check_for_updates; }
|
||||
static bool dont_check_exists() { return prefs.update_manager.dont_check_exists; }
|
||||
static const QString last_version_used() { return prefs.update_manager.last_version_used; }
|
||||
static const QDate next_check() { return QDate::fromString(QString(prefs.update_manager.next_check), "dd/MM/yyyy"); }
|
||||
static const QDate next_check() { return QDate::fromJulianDay(prefs.update_manager.next_check); }
|
||||
|
||||
public slots:
|
||||
static void set_dont_check_for_updates(bool value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue