Changeset View
Changeset View
Standalone View
Standalone View
core/utilities/maintenance/newitemsfinder.cpp
Context not available. | |||||
71 | 71 | | |||
---|---|---|---|---|---|
72 | d->mode = mode; | 72 | d->mode = mode; | ||
73 | 73 | | |||
74 | // Common conections to ScanController | 74 | // Common connections to ScanController | ||
75 | 75 | | |||
76 | connect(ScanController::instance(), SIGNAL(collectionScanStarted(QString)), | 76 | connect(ScanController::instance(), SIGNAL(collectionScanStarted(QString)), | ||
77 | this, SLOT(slotScanStarted(QString))); | 77 | this, SLOT(slotScanStarted(QString))); | ||
Context not available. | |||||
187 | 187 | | |||
188 | void NewItemsFinder::slotPartialScanDone(const QString& path) | 188 | void NewItemsFinder::slotPartialScanDone(const QString& path) | ||
189 | { | 189 | { | ||
190 | // Check if path scanned is included in planed list. | 190 | // Check if path scanned is included in planned list. | ||
191 | 191 | | |||
192 | if (d->foldersToScan.contains(path) && !d->foldersScanned.contains(path)) | 192 | if (d->foldersToScan.contains(path) && !d->foldersScanned.contains(path)) | ||
193 | { | 193 | { | ||
194 | d->foldersScanned.append(path); | 194 | d->foldersScanned.append(path); | ||
195 | d->foldersScanned.sort(); | 195 | d->foldersScanned.sort(); | ||
196 | 196 | | |||
197 | // Check if all planed scanning is done | 197 | // Check if all planned scanning is done | ||
198 | if (d->foldersScanned == d->foldersToScan) | 198 | if (d->foldersScanned == d->foldersToScan) | ||
199 | { | 199 | { | ||
200 | slotDone(); | 200 | slotDone(); | ||
Context not available. |