mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-16 10:41:34 +03:00
Propagator: Commit the DB for Poll Jobs
This commit is contained in:
parent
76f0f3cbf2
commit
4960890d70
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue