Changeset View
Changeset View
Standalone View
Standalone View
src/file/indexcleaner.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
76 | for (const QString& folder : includeFolders) { | 76 | for (const QString& folder : includeFolders) { | ||
77 | quint64 id = filePathToId(QFile::encodeName(folder)); | 77 | quint64 id = filePathToId(QFile::encodeName(folder)); | ||
78 | tr.removeRecursively(id, shouldDelete); | 78 | tr.removeRecursively(id, shouldDelete); | ||
79 | } | 79 | } | ||
80 | const auto excludeFolders = m_config->excludeFolders(); | 80 | const auto excludeFolders = m_config->excludeFolders(); | ||
81 | for (const QString& folder : excludeFolders) { | 81 | for (const QString& folder : excludeFolders) { | ||
82 | quint64 id = filePathToId(QFile::encodeName(folder)); | 82 | quint64 id = filePathToId(QFile::encodeName(folder)); | ||
83 | if (tr.hasDocument(id)) { | 83 | if (tr.hasDocument(id)) { | ||
84 | tr.removeRecursively(id); | 84 | tr.removeRecursively(id, shouldDelete); | ||
85 | } | 85 | } | ||
86 | } | 86 | } | ||
87 | tr.commit(); | 87 | tr.commit(); | ||
88 | 88 | | |||
89 | Q_EMIT done(); | 89 | Q_EMIT done(); | ||
90 | } | 90 | } |