1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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>
This commit is contained in:
Seamus Boyle 2017-07-04 12:14:18 +10:00 committed by Dirk Hohndel
parent d17bb6318e
commit 252dfaf6d1

View file

@ -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);