Skip to content

Commit

Permalink
TreeView: Don't add MouseListener for nested custom components
Browse files Browse the repository at this point in the history
This restores the behaviour of TreeViews with custom item components prior to ec99020
  • Loading branch information
ed95 committed Sep 23, 2021
1 parent d589f65 commit 55ffe91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/juce_gui_basics/widgets/juce_TreeView.cpp
Expand Up @@ -327,7 +327,7 @@ class TreeView::ContentComponent : public Component,
auto newComp = std::make_unique<ItemComponent> (*treeItem);

addAndMakeVisible (*newComp);
newComp->addMouseListener (this, true);
newComp->addMouseListener (this, false);
componentsToKeep.push_back (newComp.get());

itemComponents.push_back (std::move (newComp));
Expand Down

0 comments on commit 55ffe91

Please sign in to comment.