diff --git a/YACReaderLibrary/properties_dialog.cpp b/YACReaderLibrary/properties_dialog.cpp index 10f5c918..58316c93 100644 --- a/YACReaderLibrary/properties_dialog.cpp +++ b/YACReaderLibrary/properties_dialog.cpp @@ -734,14 +734,14 @@ void PropertiesDialog::setMultipleCover() QPixmap last = lastComic.info.getCover(basePath); last = last.scaledToHeight(575, Qt::SmoothTransformation); - coverImage = QPixmap::fromImage(blurred(last.toImage(), QRect(0, 0, last.width(), last.height()), 15)); + auto coverImage = QPixmap::fromImage(blurred(last.toImage(), QRect(0, 0, last.width(), last.height()), 15)); cover->setPixmap(coverImage); } void PropertiesDialog::setCover(const QPixmap &coverI) { - coverImage = coverI.scaledToHeight(575, Qt::SmoothTransformation); + auto coverImage = coverI.scaledToHeight(575, Qt::SmoothTransformation); cover->setPixmap(coverImage); } diff --git a/YACReaderLibrary/properties_dialog.h b/YACReaderLibrary/properties_dialog.h index 7485656a..3e031846 100644 --- a/YACReaderLibrary/properties_dialog.h +++ b/YACReaderLibrary/properties_dialog.h @@ -113,8 +113,6 @@ private: QPushButton *previousButton; QPushButton *restoreButton; //?? - QPixmap coverImage; - QToolButton *showPreviousCoverPageButton; QToolButton *showNextCoverPageButton; QLabel *coverPageNumberLabel;