| 705 | } |
| 706 | |
| 707 | void FileSystemPile::onFileRemoved(QString strFileName) |
| 708 | { |
| 709 | FileSystemActor *actor; |
| 710 | |
| 711 | // Search all items in the pile for this path |
| 712 | for (uint i = 0; i < pileItems.size(); i++) |
| 713 | { |
| 714 | actor = (FileSystemActor *) pileItems[i]; |
| 715 | |
| 716 | // If the pile Item patches the file path, delete it |
| 717 | if (fsManager->isIdenticalPath(actor->getFullPath(), strFileName)) |
| 718 | { |
| 719 | Pile::removeFromPile(actor); |
| 720 | SAFE_DELETE(actor); |
| 721 | |
| 722 | i = pileItems.size(); |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | // If no items left, folderize |
| 727 | if (pileItems.size() == 0) |
| 728 | { |
| 729 | folderize(false); |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | void FileSystemPile::onFileNameChanged(QString strOldFileName, QString strNewFileName) |
| 734 | { |
nothing calls this directly
no test coverage detected