From fad0abffec1ba784256daa68c7d52891c2d08825 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 4 Jan 2018 13:16:13 +0100 Subject: Various minor fixes - typo fixes - bumped copyright year - removed a bunch of unused imports - fixed a couple of clazy warnings --- lib/settings/settingsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/settings') diff --git a/lib/settings/settingsdialog.cpp b/lib/settings/settingsdialog.cpp index 9a589d6..478e372 100644 --- a/lib/settings/settingsdialog.cpp +++ b/lib/settings/settingsdialog.cpp @@ -74,11 +74,11 @@ inline QHBoxLayout *createEntry(Configuration* config, const std::string &path, QToolButton *resetButton = new QToolButton(widget); resetButton->setIcon(widget->style()->standardIcon(QStyle::SP_DialogResetButton)); - QObject::connect(resetButton, &QToolButton::clicked, [config, path, lineEdit]() { + QObject::connect(resetButton, &QToolButton::clicked, widget, [config, path, lineEdit]() { config->resetValue(path.c_str()); lineEdit->setText(QString::fromStdString(config->value(path.c_str()).value())); }); - QObject::connect(lineEdit, &QLineEdit::editingFinished, [config, path, lineEdit]() { + QObject::connect(lineEdit, &QLineEdit::editingFinished, widget, [config, path, lineEdit]() { config->setValue(path, lineEdit->text().toStdString()); }); -- cgit v1.2.1