From 746f466e8d57cf5dc5288bca41803afa7b247679 Mon Sep 17 00:00:00 2001 From: Adrian Date: Thu, 14 Nov 2024 22:23:22 -0500 Subject: [PATCH] Move blockSignals to resetCheckboxes function --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b829daf8..ccc3b647 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2580,7 +2580,6 @@ void MainWindow::tabWidget_currentChanged(int index) ui->pushInstall->setEnabled(false); ui->pushUninstall->setEnabled(false); - currentTree->blockSignals(true); // Block signals before resetting checkboxes resetCheckboxes(); QString search_str; saveSearchText(search_str, savedComboIndex); @@ -2623,6 +2622,7 @@ void MainWindow::tabWidget_currentChanged(int index) void MainWindow::resetCheckboxes() { + currentTree->blockSignals(true); if (currentTree != ui->treePopularApps) { currentTree->clearSelection(); for (QTreeWidgetItemIterator it(currentTree); (*it) != nullptr; ++it) {