Settings update: Fix broken UpdateManger logic

In commit b76c1846bb ("Settings update: Simplify Update Manager")
the logic for when to show the UpdateManger question to the user got
broken. Unintuitively, a boolean setting actually has three possible
values. True, False, and Unset. This patch fixes things to work as
designed again.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-08-27 12:26:13 -07:00
parent f745a25cb7
commit 1bf76dd3db
4 changed files with 10 additions and 1 deletions

View file

@ -47,6 +47,7 @@ class UpdateManagerSettings : public QObject {
public:
UpdateManagerSettings(QObject *parent);
bool dontCheckForUpdates() const;
bool dontCheckExists() const;
QString lastVersionUsed() const;
QDate nextCheck() const;