From 381bfd27a86f0823ef0597c3379691dabdaf14c1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 5 Mar 2018 23:08:54 -0600 Subject: [PATCH] Fix warnings --- src/nostalgia/studio/lib/wizard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nostalgia/studio/lib/wizard.cpp b/src/nostalgia/studio/lib/wizard.cpp index fb5e6ca6..55f32a7c 100644 --- a/src/nostalgia/studio/lib/wizard.cpp +++ b/src/nostalgia/studio/lib/wizard.cpp @@ -188,7 +188,7 @@ void WizardFormPage::addComboBox(QString displayName, QString fieldName, QVector cb->addItem(o); } - connect(cb, &QComboBox::currentTextChanged, [this, fieldName, cb, field](QString txt) { + connect(cb, &QComboBox::currentTextChanged, [this, fieldName, field](QString txt) { if (field->value == "" && txt != "") { m_validFields++; } else if (field->value != "" && txt == "") { @@ -218,7 +218,7 @@ void WizardFormPage::addLineEdit(QString displayName, QString fieldName, QString registerField(fieldName, le); - connect(le, &QLineEdit::textChanged, [this, fieldName, le, field](QString txt) { + connect(le, &QLineEdit::textChanged, [this, fieldName, field](QString txt) { if (field->value == "" && txt != "") { m_validFields++; } else if (field->value != "" && txt == "") { @@ -270,7 +270,7 @@ void WizardFormPage::addPathBrowse(QString displayName, QString fieldName, QStri registerField(fieldName, le); - connect(le, &QLineEdit::textChanged, [this, fieldName, le](QString txt) { + connect(le, &QLineEdit::textChanged, [this, fieldName](QString txt) { if (m_fields[fieldName].value == "" && txt != "") { m_validFields++; } else if (m_fields[fieldName].value != "" && txt == "") {