mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Fixed some dodgy threading in the openGL rendering context.
This commit is contained in:
parent
906a99763d
commit
ff20ad64f3
2 changed files with 13 additions and 22 deletions
|
|
@ -98,12 +98,8 @@ ProjectTreeViewBase* ProjectTreeViewBase::findTreeViewItem (const Project::Item&
|
|||
for (int i = getNumSubItems(); --i >= 0;)
|
||||
{
|
||||
if (ProjectTreeViewBase* pg = dynamic_cast <ProjectTreeViewBase*> (getSubItem(i)))
|
||||
{
|
||||
pg = pg->findTreeViewItem (itemToFind);
|
||||
|
||||
if (pg != nullptr)
|
||||
return pg;
|
||||
}
|
||||
if (ProjectTreeViewBase* found = pg->findTreeViewItem (itemToFind))
|
||||
return found;
|
||||
}
|
||||
|
||||
setOpen (wasOpen);
|
||||
|
|
@ -122,15 +118,9 @@ void ProjectTreeViewBase::triggerAsyncRename (const Project::Item& itemToRename)
|
|||
void messageCallback()
|
||||
{
|
||||
if (tree != nullptr)
|
||||
{
|
||||
if (ProjectTreeViewBase* pg = dynamic_cast <ProjectTreeViewBase*> (tree->getRootItem()))
|
||||
{
|
||||
pg = pg->findTreeViewItem (itemToRename);
|
||||
|
||||
if (pg != nullptr)
|
||||
pg->showRenameBox();
|
||||
}
|
||||
}
|
||||
if (ProjectTreeViewBase* root = dynamic_cast <ProjectTreeViewBase*> (tree->getRootItem()))
|
||||
if (ProjectTreeViewBase* found = root->findTreeViewItem (itemToRename))
|
||||
found->showRenameBox();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue