summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-12-18 14:35:41 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-12-18 14:35:41 +0100
commit3b900bdcd2a08bb3d586d100f54285cd7adb8900 (patch)
tree4696e1543c13eeda3d8d0a5f722abaffef1e94db /src/UserSettingsPage.cpp
parentAnother shadowed variable (diff)
downloadnheko-3b900bdcd2a08bb3d586d100f54285cd7adb8900.tar.xz
Fix unused capture
Diffstat (limited to 'src/UserSettingsPage.cpp')
-rw-r--r--src/UserSettingsPage.cpp2
1 files changed, 1 insertions, 1 deletions
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, &notSoOk](QLabel *label, const std::string &secretName) {
                 if (cache::secret(secretName)) {
                         label->setStyleSheet(ok);
                         label->setText(tr("CACHED"));