Changeset View
Changeset View
Standalone View
Standalone View
kcms/baloo/filteredfoldermodel.cpp
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Line(s) | 178 | { | |||
---|---|---|---|---|---|
186 | 186 | | |||
187 | if (url.startsWith(homePath)) { | 187 | if (url.startsWith(homePath)) { | ||
188 | name = url.mid(homePath.size()); | 188 | name = url.mid(homePath.size()); | ||
189 | } | 189 | } | ||
190 | else { | 190 | else { | ||
191 | // Check Mount allMountPointsExcluded | 191 | // Check Mount allMountPointsExcluded | ||
192 | for (QString mountPoint : m_mountPoints) { | 192 | for (QString mountPoint : m_mountPoints) { | ||
193 | if (url.startsWith(mountPoint)) { | 193 | if (url.startsWith(mountPoint)) { | ||
194 | name = QLatin1Char('[') + QDir(mountPoint).dirName() + QLatin1String("]/") + url.mid(mountPoint.length()); | 194 | name = QLatin1Char('[') + mountPoint+ QLatin1String("]/") + url.mid(mountPoint.length()); | ||
195 | break; | 195 | break; | ||
196 | } | 196 | } | ||
197 | } | 197 | } | ||
198 | } | 198 | } | ||
199 | 199 | | |||
200 | if (name.endsWith(QLatin1Char('/'))) { | 200 | if (name.endsWith(QLatin1Char('/'))) { | ||
201 | name = name.mid(0, name.size() - 1); | 201 | name = name.mid(0, name.size() - 1); | ||
202 | } | 202 | } | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |