From 8d63006bba8e0cce9e5f8ee63ffa51482e7a2694 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 22 Nov 2024 17:35:02 -0800 Subject: [PATCH] widgets/wrapper: fix default child not being assigned initially --- src/widgets/wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/wrapper.cpp b/src/widgets/wrapper.cpp index 40d7755d..68b1d953 100644 --- a/src/widgets/wrapper.cpp +++ b/src/widgets/wrapper.cpp @@ -32,6 +32,7 @@ void WrapperManager::componentComplete() { if (childItems.length() == 1) { this->mDefaultChild = childItems.first(); + if (!child) child = this->mDefaultChild; } else if (childItems.length() != 0) { this->flags.setFlag(WrapperManager::HasMultipleChildren);