Changeset View
Changeset View
Standalone View
Standalone View
src/file/fileindexerconfig.cpp
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Line(s) | 310 | { | |||
---|---|---|---|---|---|
326 | for (const auto& device: allMedia) { | 326 | for (const auto& device: allMedia) { | ||
327 | const QString mountPath = device.mountPath(); | 327 | const QString mountPath = device.mountPath(); | ||
328 | if (!device.isUsable() && !mountPath.isEmpty()) { | 328 | if (!device.isUsable() && !mountPath.isEmpty()) { | ||
329 | if (!includeFoldersPlain.contains(mountPath)) { | 329 | if (!includeFoldersPlain.contains(mountPath)) { | ||
330 | excludeFoldersPlain << mountPath; | 330 | excludeFoldersPlain << mountPath; | ||
331 | } | 331 | } | ||
332 | } | 332 | } | ||
333 | } | 333 | } | ||
334 | // Resolve symlinks in excludeFolders | ||||
335 | for (int i = 0; i < excludeFoldersPlain.size(); i++) { | ||||
336 | QString resolvedPath = QFileInfo(excludeFoldersPlain.at(i)).canonicalFilePath(); | ||||
337 | excludeFoldersPlain.replace(i, resolvedPath); | ||||
338 | } | ||||
334 | 339 | | |||
335 | m_folderCache.clear(); | 340 | m_folderCache.clear(); | ||
336 | insertSortFolders(includeFoldersPlain, true, m_folderCache); | 341 | insertSortFolders(includeFoldersPlain, true, m_folderCache); | ||
337 | insertSortFolders(excludeFoldersPlain, false, m_folderCache); | 342 | insertSortFolders(excludeFoldersPlain, false, m_folderCache); | ||
338 | 343 | | |||
339 | cleanupList(m_folderCache); | 344 | cleanupList(m_folderCache); | ||
340 | 345 | | |||
341 | m_folderCacheDirty = false; | 346 | m_folderCacheDirty = false; | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |