diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-13 09:07:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-15 14:50:53 +0900 |
commit | 4943cbea505aacdd33bf93c3365588ba73785d4d (patch) | |
tree | 35cd89970af3ecbb953a8347117094999cd5f46d /connection.cpp | |
parent | 6536124821c1df791a69a58de21a71322d9363f6 (diff) | |
download | libquotient-4943cbea505aacdd33bf93c3365588ba73785d4d.tar.gz libquotient-4943cbea505aacdd33bf93c3365588ba73785d4d.zip |
BaseJob: Use saved parameters instead of overriding apiPath(), query() and data() in each job class
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/connection.cpp b/connection.cpp index ec251500..7ff5a8b0 100644 --- a/connection.cpp +++ b/connection.cpp @@ -189,9 +189,7 @@ void Connection::sync(int timeout) SyncJob* Connection::Private::startSyncJob(const QString& filter, int timeout) { - syncJob = new SyncJob(data, data->lastEvent()); - syncJob->setFilter(filter); - syncJob->setTimeout(timeout); + syncJob = new SyncJob(data, filter, timeout, data->lastEvent()); syncJob->start(); return syncJob; |