From cad0b2b467048533a91daf372e7f8418cd6a3abb Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 19 Jul 2019 09:07:38 +0800 Subject: [PATCH] TreeView: fix missing update on item expansion --- src/Gui/Tree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index e149f9dfd3..3d51256b9b 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -3209,6 +3209,8 @@ bool DocumentItem::populateObject(App::DocumentObject *obj) { void DocumentItem::populateItem(DocumentObjectItem *item, bool refresh, bool delay) { + (void)delay; + if (item->populated && !refresh) return; @@ -3362,7 +3364,7 @@ void DocumentItem::populateItem(DocumentObjectItem *item, bool refresh, bool del getTree()->blockConnection(lock); } if(updated) - getTree()->_updateStatus(delay); + getTree()->_updateStatus(); } int DocumentItem::findRootIndex(App::DocumentObject *childObj) {