fixed a bug in trigger::dbl_click()

impl_->set_expanded() was called unconditionally, even if the node had no children. This caused the node icon to change to the "expanded" icon if the node had an icon scheme, even when the node didn't have children.
This commit is contained in:
ErrorFlynn
2019-08-11 20:27:16 -04:00
committed by GitHub
parent 1b0ac10475
commit 69e559f657

View File

@@ -1952,7 +1952,7 @@ namespace nana
impl_->attr.tree_cont.for_each<item_locator&>(shape.first, nl);
auto const node = nl.node();
if (!node)
if (!node || !node->child)
return;
switch (nl.what())