Changeset View
Changeset View
Standalone View
Standalone View
src/file/modifiedfileindexer.cpp
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 51 | for (const QString& filePath : qAsConst(m_files)) { | |||
---|---|---|---|---|---|
88 | if (!job.index()) { | 88 | if (!job.index()) { | ||
89 | continue; | 89 | continue; | ||
90 | } | 90 | } | ||
91 | 91 | | |||
92 | // we can get modified events for files which do not exist | 92 | // we can get modified events for files which do not exist | ||
93 | // cause Baloo was not running and missed those events | 93 | // cause Baloo was not running and missed those events | ||
94 | if (tr.hasDocument(job.document().id())) { | 94 | if (tr.hasDocument(job.document().id())) { | ||
95 | tr.replaceDocument(job.document(), DocumentTime); | 95 | tr.replaceDocument(job.document(), DocumentTime); | ||
96 | tr.setPhaseOne(job.document().id()); | | |||
97 | } | 96 | } | ||
98 | else { | 97 | else { | ||
99 | tr.addDocument(job.document()); | 98 | tr.addDocument(job.document()); | ||
100 | } | 99 | } | ||
101 | } | 100 | } | ||
102 | 101 | | |||
103 | tr.commit(); | 102 | tr.commit(); | ||
104 | Q_EMIT done(); | 103 | Q_EMIT done(); | ||
105 | } | 104 | } |