From 4960890d70a5214d955a49535ccef9fd2592504d Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Thu, 11 Sep 2014 12:05:35 +0200 Subject: [PATCH] Propagator: Commit the DB for Poll Jobs --- src/mirall/propagator_qnam.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mirall/propagator_qnam.cpp b/src/mirall/propagator_qnam.cpp index f3b3bf44b..6d2e3895a 100644 --- a/src/mirall/propagator_qnam.cpp +++ b/src/mirall/propagator_qnam.cpp @@ -110,6 +110,7 @@ bool PollJob::finished() info._file = _item._file; // no info._url removes it from the database _journal->setPollInfo(info); + _journal->commit("remove poll info"); } emit finishedSignal(); @@ -145,6 +146,7 @@ bool PollJob::finished() info._file = _item._file; // no info._url removes it from the database _journal->setPollInfo(info); + _journal->commit("remove poll info"); emit finishedSignal(); return true; @@ -475,6 +477,7 @@ void PropagateUploadFileQNAM::startPollJob(const QString& path) info._url = path; info._modtime = _item._modtime; _propagator->_journal->setPollInfo(info); + _propagator->_journal->commit("add poll info"); job->start(); }