diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-01-25 13:12:38 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-01-26 01:26:23 +0300 |
commit | 1fc5a76622c7e1811c296c9550884cf124f3e864 (patch) | |
tree | fed4f3d29a6546c53f6005b36c62ca31f83632a3 /test/syncenginetestutils.h | |
parent | a764d7eb86b40315931e3a0c9fac20ef7a83c09c (diff) |
Pass the SyncFileItem as SyncFileItemPtr in itemCompleted
This will allow us to keep a reference on the items in connected slots.
Diffstat (limited to 'test/syncenginetestutils.h')
-rw-r--r-- | test/syncenginetestutils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index 76b74c15e..8fbe3d56d 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -818,15 +818,15 @@ public: } void execUntilItemCompleted(const QString &relativePath) { - QSignalSpy spy(_syncEngine.get(), SIGNAL(itemCompleted(const SyncFileItem &))); + QSignalSpy spy(_syncEngine.get(), SIGNAL(itemCompleted(const SyncFileItemPtr &))); QElapsedTimer t; t.start(); while (t.elapsed() < 5000) { spy.clear(); QVERIFY(spy.wait()); for(const QList<QVariant> &args : spy) { - auto item = args[0].value<OCC::SyncFileItem>(); - if (item.destination() == relativePath) + auto item = args[0].value<OCC::SyncFileItemPtr>(); + if (item->destination() == relativePath) return; } } |