diff --git a/YACReader/options_dialog.cpp b/YACReader/options_dialog.cpp index e69c727b..92f974ad 100644 --- a/YACReader/options_dialog.cpp +++ b/YACReader/options_dialog.cpp @@ -139,7 +139,7 @@ OptionsDialog::OptionsDialog(QWidget *parent) scaleCheckbox = new QCheckBox(tr("Enlarge images to fit width/height")); connect(scaleCheckbox, &QCheckBox::clicked, [=](bool checked) { - settings->setValue(ENLARGE_IMAGES, checked); + Configuration::getConfiguration().setEnlargeImages(checked); emit(changedImageOptions()); }); diff --git a/YACReader/viewer.cpp b/YACReader/viewer.cpp index eaa96381..dd9e27bd 100644 --- a/YACReader/viewer.cpp +++ b/YACReader/viewer.cpp @@ -317,7 +317,7 @@ void Viewer::updateContentSize() //there is an image to resize if (currentPage != nullptr && !currentPage->isNull()) { QSize pagefit = currentPage->size(); - bool stretchImages = Configuration::getConfiguration().getSettings()->value(ENLARGE_IMAGES, true).toBool(); + bool stretchImages = Configuration::getConfiguration().getEnlargeImages(); YACReader::FitMode fitmode = Configuration::getConfiguration().getFitMode(); switch (fitmode) { case YACReader::FitMode::FullRes: