From 154f215c38fd5b743447aaed46a6db3d7b3e1302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 1 Oct 2021 20:25:01 +0200 Subject: [PATCH] Use 4 args connect --- YACReader/options_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReader/options_dialog.cpp b/YACReader/options_dialog.cpp index 16f06509..5ea3890a 100644 --- a/YACReader/options_dialog.cpp +++ b/YACReader/options_dialog.cpp @@ -137,7 +137,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) auto scaleBox = new QGroupBox(tr("Fit options")); auto scaleLayout = new QVBoxLayout(); scaleCheckbox = new QCheckBox(tr("Enlarge images to fit width/height")); - connect(scaleCheckbox, &QCheckBox::clicked, + connect(scaleCheckbox, &QCheckBox::clicked, scaleCheckbox, [=](bool checked) { Configuration::getConfiguration().setEnlargeImages(checked); emit changedImageOptions(); @@ -150,7 +150,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) auto doublePageBox = new QGroupBox(tr("Double Page options")); auto doublePageBoxLayout = new QVBoxLayout(); coverSPCheckBox = new QCheckBox(tr("Show covers as single page")); - connect(coverSPCheckBox, &QCheckBox::clicked, + connect(coverSPCheckBox, &QCheckBox::clicked, coverSPCheckBox, [=](bool checked) { settings->setValue(COVER_IS_SP, checked); emit changedImageOptions();