Skip to content

Commit

Permalink
Move blockSignals to resetCheckboxes function
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianTM committed Nov 15, 2024
1 parent 981aa9a commit 746f466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 746f466

Please sign in to comment.