summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Seamus Boyle <seamus@beantrader.com.au>2017-07-04 12:14:18 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-04 11:54:54 +0900
commit252dfaf6d1e162eb4d528d5e48ae51e9b1f79536 (patch)
treebf03df50b466746202c839333457dcbbf78fce76 /tests
parentd17bb6318e17f85a243c6f618f9ed22b81ce4751 (diff)
downloadsubsurface-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')
-rw-r--r--tests/testpreferences.cpp2
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);