From 071620daabb6785468f75dbe9ff8632c82a3cfc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 20 Apr 2025 00:08:14 +0200 Subject: [PATCH] Reduce capture scope. --- .../deck_preview/deck_preview_tag_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e1c2ca6ff..4d844f6f8 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 @@ -138,7 +138,7 @@ DeckPreviewTagDialog::DeckPreviewTagDialog(const QStringList &knownTags, const Q connect(addTagButton, &QPushButton::clicked, this, &DeckPreviewTagDialog::addTag); connect(newTagInput, &QLineEdit::textChanged, this, - [=, this](const QString &text) { addTagButton->setEnabled(!text.trimmed().isEmpty()); }); + [this](const QString &text) { addTagButton->setEnabled(!text.trimmed().isEmpty()); }); // OK and Cancel buttons buttonLayout = new QHBoxLayout(this);