From d0a64e1d6fbdf84c46b93d6e90c3ea42d0afecde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 12 Jan 2025 21:02:41 +0100 Subject: [PATCH] Wrestle with Qt Checkboxes. --- .../deck_preview/deck_preview_tag_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp b/cockatrice/src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp index 25ba2019d..7c501d8d5 100644 --- a/cockatrice/src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp +++ b/cockatrice/src/client/ui/widgets/visual_deck_storage/deck_preview/deck_preview_tag_dialog.cpp @@ -105,7 +105,7 @@ DeckPreviewTagDialog::DeckPreviewTagDialog(const QStringList &knownTags, const Q tagListView_->addItem(item); tagListView_->setItemWidget(item, tagWidget); - connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this, + connect(tagWidget->checkBox(), &QCheckBox::toggled, this, &DeckPreviewTagDialog::onCheckboxStateChanged); } @@ -163,7 +163,7 @@ void DeckPreviewTagDialog::addTag() tagListView_->setItemWidget(item, tagWidget); activeTags_.append(newTag); - connect(tagWidget->checkBox(), &QCheckBox::checkStateChanged, this, &DeckPreviewTagDialog::onCheckboxStateChanged); + connect(tagWidget->checkBox(), &QCheckBox::toggled, this, &DeckPreviewTagDialog::onCheckboxStateChanged); // Clear the input field newTagInput_->clear();