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:
parent
d17bb6318e
commit
252dfaf6d1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue