Browse Source

Projucer: Fixed a crash when deleting multiple file tree items

tags/2021-05-28
ed 8 years ago
parent
commit
44f69755b8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/Projucer/Source/Project/UI/Sidebar/jucer_FileTreeItems.h

+ 1
- 1
extras/Projucer/Source/Project/UI/Sidebar/jucer_FileTreeItems.h View File

@@ -130,7 +130,7 @@ public:
{ {
if (auto itemToRemove = treeRootItem->findTreeViewItem (itemsToRemove.getUnchecked (i))) if (auto itemToRemove = treeRootItem->findTreeViewItem (itemsToRemove.getUnchecked (i)))
{ {
if (auto* pcc = getProjectContentComponent())
if (auto* pcc = treeRootItem->getProjectContentComponent())
{ {
if (auto* fileInfoComp = dynamic_cast<FileGroupInformationComponent*> (pcc->getEditorComponentContent())) if (auto* fileInfoComp = dynamic_cast<FileGroupInformationComponent*> (pcc->getEditorComponentContent()))
if (fileInfoComp->getGroupPath() == itemToRemove->getFile().getFullPathName()) if (fileInfoComp->getGroupPath() == itemToRemove->getFile().getFullPathName())


Loading…
Cancel
Save