Changeset View
Changeset View
Standalone View
Standalone View
plugins/fsview/scan.cpp
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #include <qdir.h> | 19 | #include <qdir.h> | ||
20 | #include <qstringlist.h> | 20 | #include <qstringlist.h> | ||
21 | #include <qset.h> | 21 | #include <qset.h> | ||
22 | #include <qplatformdefs.h> | 22 | #include <qplatformdefs.h> | ||
23 | 23 | | |||
24 | #include <kdebug.h> | 24 | #include <kdebug.h> | ||
25 | #include <kurl.h> | | |||
26 | #include <kauthorized.h> | 25 | #include <kauthorized.h> | ||
27 | #include <kurlauthorized.h> | 26 | #include <kurlauthorized.h> | ||
28 | 27 | | |||
29 | #include "scan.h" | 28 | #include "scan.h" | ||
30 | #include "inode.h" | 29 | #include "inode.h" | ||
31 | 30 | | |||
32 | // ScanManager | 31 | // ScanManager | ||
33 | 32 | | |||
▲ Show 20 Lines • Show All 229 Lines • ▼ Show 20 Line(s) | 258 | { | |||
263 | _dirty = true; | 262 | _dirty = true; | ||
264 | 263 | | |||
265 | if (isForbiddenDir(si->absPath)) { | 264 | if (isForbiddenDir(si->absPath)) { | ||
266 | if (_parent) { | 265 | if (_parent) { | ||
267 | _parent->subScanFinished(); | 266 | _parent->subScanFinished(); | ||
268 | } | 267 | } | ||
269 | return 0; | 268 | return 0; | ||
270 | } | 269 | } | ||
271 | 270 | | |||
272 | KUrl u; | 271 | QUrl u = QUrl::fromLocalFile(si->absPath); | ||
dfaure: same | |||||
273 | u.setPath(si->absPath); | 272 | if (!KUrlAuthorized::authorizeUrlAction(QStringLiteral("list"), QUrl(), u)) { | ||
274 | if (!KUrlAuthorized::authorizeUrlAction(QStringLiteral("list"), KUrl(), u)) { | | |||
275 | if (_parent) { | 273 | if (_parent) { | ||
276 | _parent->subScanFinished(); | 274 | _parent->subScanFinished(); | ||
277 | } | 275 | } | ||
278 | 276 | | |||
279 | return 0; | 277 | return 0; | ||
280 | } | 278 | } | ||
281 | 279 | | |||
282 | QDir d(si->absPath); | 280 | QDir d(si->absPath); | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |
same