From 3f94fd9c0dbd57e9c40750bb63b4b01855972596 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 30 May 2026 13:59:08 +0000 Subject: [PATCH 1/2] Fix blocked tab tree view collapsing on model updates The blocked tab tree view was constantly collapsing when underlying data refreshed because `BlockedTreeModel` rebuilt the entire tree (triggering `modelReset` and `layoutChanged`). This connects the `m_blockedTreeModel`'s `modelReset` and `layoutChanged` signals directly to the `m_blockedView`'s `expandAll` slot so it always stays open. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com> --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a59e263..0732792 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1617,6 +1617,10 @@ void MainWindow::setupBlockedTab() { &MainWindow::updateBlockedTabVisibility); connect(m_blockedTreeModel, &QAbstractItemModel::modelReset, this, &MainWindow::updateBlockedTabVisibility); + connect(m_blockedTreeModel, &QAbstractItemModel::modelReset, m_blockedView, + &QTreeView::expandAll); + connect(m_blockedTreeModel, &QAbstractItemModel::layoutChanged, m_blockedView, + &QTreeView::expandAll); updateBlockedTabVisibility(); } From 8bd0e27c33cbceaa2937fcb61d97d76c33f50301 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 00:26:19 +0000 Subject: [PATCH 2/2] Fix blocked tab tree view collapsing on model updates The blocked tab tree view was constantly collapsing when underlying data refreshed because `BlockedTreeModel` rebuilt the entire tree (triggering `modelReset`). This connects the `m_blockedTreeModel`'s `modelReset` signal directly to the `m_blockedView`'s `expandAll` slot using `Qt::QueuedConnection` to reliably keep it open. Co-authored-by: arran4 <111667+arran4@users.noreply.github.com> --- src/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 0732792..8264bc9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1618,9 +1618,7 @@ void MainWindow::setupBlockedTab() { connect(m_blockedTreeModel, &QAbstractItemModel::modelReset, this, &MainWindow::updateBlockedTabVisibility); connect(m_blockedTreeModel, &QAbstractItemModel::modelReset, m_blockedView, - &QTreeView::expandAll); - connect(m_blockedTreeModel, &QAbstractItemModel::layoutChanged, m_blockedView, - &QTreeView::expandAll); + &QTreeView::expandAll, Qt::QueuedConnection); updateBlockedTabVisibility(); }