From 5bcc08c1e5a0fd376eee6315e6d6e890e4424102 Mon Sep 17 00:00:00 2001 From: Skaleee <78816681+Skaleee@users.noreply.github.com> Date: Fri, 22 Dec 2023 19:16:24 +0100 Subject: [PATCH] added model initialisation for show-grouping-content dialog --- plugins/gui/src/grouping/grouping_manager_widget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gui/src/grouping/grouping_manager_widget.cpp b/plugins/gui/src/grouping/grouping_manager_widget.cpp index 7c1354457b1..ecd13b1b3ae 100644 --- a/plugins/gui/src/grouping/grouping_manager_widget.cpp +++ b/plugins/gui/src/grouping/grouping_manager_widget.cpp @@ -503,6 +503,11 @@ namespace hal // Replace InputDialog with SelectionTreeView SelectionTreeView* selectionTreeView = new SelectionTreeView(&dialog, true); + SelectionTreeModel* selectionTreeModel = new SelectionTreeModel(this); // Need to fully initialise SelectionTreeView with a model + SelectionTreeProxyModel* selectionTreeProxyModel = new SelectionTreeProxyModel(this); + selectionTreeProxyModel->setSourceModel(selectionTreeModel); + selectionTreeView->setModel(selectionTreeProxyModel); + selectionTreeView->populate(true, grpId); QPushButton* closeButton = new QPushButton("Close", &dialog);