From 69e559f657a34239dd039284cddf650b71b5b2d0 Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Sun, 11 Aug 2019 20:27:16 -0400 Subject: [PATCH] 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. --- source/gui/widgets/treebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/widgets/treebox.cpp b/source/gui/widgets/treebox.cpp index eb859353..c70c4330 100644 --- a/source/gui/widgets/treebox.cpp +++ b/source/gui/widgets/treebox.cpp @@ -1952,7 +1952,7 @@ namespace nana impl_->attr.tree_cont.for_each(shape.first, nl); auto const node = nl.node(); - if (!node) + if (!node || !node->child) return; switch (nl.what())