MCPcopy Create free account
hub / github.com/bumptop/BumpTop / onFileRemoved

Method onFileRemoved

trunk/win/Source/BT_FileSystemPile.cpp:707–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void 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
733void FileSystemPile::onFileNameChanged(QString strOldFileName, QString strNewFileName)
734{

Callers

nothing calls this directly

Calls 3

isIdenticalPathMethod · 0.80
getFullPathMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected