From 3b900bdcd2a08bb3d586d100f54285cd7adb8900 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 18 Dec 2020 14:35:41 +0100 Subject: [PATCH] Fix unused capture --- src/UserSettingsPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 9fd76bda..708fb7fd 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -1195,7 +1195,7 @@ UserSettingsPage::updateSecretStatus() QString ok = "QLabel { color : #00cc66; }"; QString notSoOk = "QLabel { color : #ff9933; }"; - auto updateLabel = [&, this](QLabel *label, const std::string &secretName) { + auto updateLabel = [&ok, ¬SoOk](QLabel *label, const std::string &secretName) { if (cache::secret(secretName)) { label->setStyleSheet(ok); label->setText(tr("CACHED"));