568
583
// go through all album copy/move hints
569
584
QHash<CollectionScannerHints::DstPath, CollectionScannerHints::Album>::const_iterator it;
571
587
for (it = d->albumHints.constBegin(); it != d->albumHints.constEnd(); ++it)
573
589
// if the src entry of a hint is found in toBeDeleted, we have a move/rename, no copy. Handle these here.
574
590
toBeDeletedIndex = toBeDeleted.indexOf(it.value().albumId);
575
592
if (toBeDeletedIndex != -1)
577
594
// check for existence of target
578
595
CollectionLocation location = CollectionManager::instance()->locationForAlbumRootId(it.key().albumRootId);
579
597
if (location.isAvailable())
581
599
QFileInfo fileInfo(location.albumRootPath() + it.key().relativePath);
582
601
if (fileInfo.exists() && fileInfo.isDir())
584
603
// Just set a new root/relativePath to the album. Further scanning will care for all cases or error.