Add filter connection after toggling buttons and emit on end. (#5858)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-04-20 06:11:52 +02:00 committed by GitHub
parent 81a911dc11
commit f98aad57d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,13 +64,13 @@ void VisualDatabaseDisplaySetFilterWidget::createSetButtons()
setButtons[shortName] = button;
// Connect toggle signal
connect(button, &QPushButton::toggled, this,
[this, shortName](bool checked) { handleSetToggled(shortName, checked); });
if (setsActivated < setsToPreactivate) {
setsActivated++;
activeSets[shortName] = true;
button->setChecked(true);
}
connect(button, &QPushButton::toggled, this,
[this, shortName](bool checked) { handleSetToggled(shortName, checked); });
}
updateSetFilter();
updateSetButtonsVisibility(); // Ensure visibility is updated initially