diff options
author | Seamus Boyle <seamus@beantrader.com.au> | 2017-07-04 12:14:18 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-04 11:54:54 +0900 |
commit | 252dfaf6d1e162eb4d528d5e48ae51e9b1f79536 (patch) | |
tree | bf03df50b466746202c839333457dcbbf78fce76 /tests/testpreferences.cpp | |
parent | d17bb6318e17f85a243c6f618f9ed22b81ce4751 (diff) | |
download | subsurface-252dfaf6d1e162eb4d528d5e48ae51e9b1f79536.tar.gz |
TestPreferences: Fix update manager test date
QDate::addDays() returns a copy with the changed date, calling it and
ignoring the return value does nothing.
Signed-off-by: Seamus Boyle <seamus@beantrader.com.au>
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r-- | tests/testpreferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index bcfc87c69..db50aff5d 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -553,7 +553,7 @@ void TestPreferences::testPreferences() TEST(update->lastVersionUsed(), QStringLiteral("tomaz-1")); TEST(update->nextCheck(), date); - date.addDays(3); + date = date.addDays(3); update->setDontCheckForUpdates(false); update->setLastVersionUsed("tomaz-2"); update->setNextCheck(date); |