Changeset View
Changeset View
Standalone View
Standalone View
src/abstractfile/abstractfilelisting.cpp
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Line(s) | |||||
103 | { | 103 | { | ||
104 | executeInit(std::move(allFiles)); | 104 | executeInit(std::move(allFiles)); | ||
105 | 105 | | |||
106 | refreshContent(); | 106 | refreshContent(); | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | void AbstractFileListing::setAllRootPaths(const QStringList &allRootPaths) | 109 | void AbstractFileListing::setAllRootPaths(const QStringList &allRootPaths) | ||
110 | { | 110 | { | ||
111 | if (d->mAllRootPaths == allRootPaths) { | 111 | //resolve symlinks | ||
112 | return; | 112 | QStringList allPaths; | ||
113 | for (const auto &path : allRootPaths) { | ||||
114 | QFileInfo newPath(path); | ||||
115 | if (newPath.isSymLink()) { | ||||
116 | allPaths << newPath.symLinkTarget(); | ||||
117 | } else { | ||||
118 | allPaths << path; | ||||
119 | } | ||||
113 | } | 120 | } | ||
114 | 121 | | |||
115 | d->mAllRootPaths = allRootPaths; | 122 | d->mAllRootPaths = allPaths; | ||
116 | } | 123 | } | ||
117 | 124 | | |||
118 | void AbstractFileListing::databaseFinishedInsertingTracksList() | 125 | void AbstractFileListing::databaseFinishedInsertingTracksList() | ||
119 | { | 126 | { | ||
120 | } | 127 | } | ||
121 | 128 | | |||
122 | void AbstractFileListing::databaseFinishedRemovingTracksList() | 129 | void AbstractFileListing::databaseFinishedRemovingTracksList() | ||
123 | { | 130 | { | ||
▲ Show 20 Lines • Show All 346 Lines • Show Last 20 Lines |