From 252dfaf6d1e162eb4d528d5e48ae51e9b1f79536 Mon Sep 17 00:00:00 2001 From: Seamus Boyle Date: Tue, 4 Jul 2017 12:14:18 +1000 Subject: [PATCH] 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 --- tests/testpreferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);