1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Projucer: Fixed a crash when deleting multiple file tree items

This commit is contained in:
ed 2017-11-23 09:42:35 +00:00
parent 57d7e98053
commit 44f69755b8

View file

@ -130,7 +130,7 @@ public:
{
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 (fileInfoComp->getGroupPath() == itemToRemove->getFile().getFullPathName())