diff --git a/YACReaderLibrary/properties_dialog.cpp b/YACReaderLibrary/properties_dialog.cpp index 7c3c61ca..ab38475d 100644 --- a/YACReaderLibrary/properties_dialog.cpp +++ b/YACReaderLibrary/properties_dialog.cpp @@ -15,6 +15,7 @@ #include #include #include +#include PropertiesDialog::PropertiesDialog(QWidget * parent) :QDialog(parent) @@ -388,6 +389,13 @@ void PropertiesDialog::setComics(QList comics) coverChanged = false; coverBox->show(); + + if(!QFileInfo(basePath+comics[0].path).exists()) + { + QMessageBox::warning(this,tr("Not found"),tr("Comic not found. You should update your library.")); + showPreviousCoverPageButton->setDisabled(true); + showNextCoverPageButton->setDisabled(true); + } } /*if(comic.info.numPages != NULL) numPagesEdit->setText(QString::number(*comic.info.numPages));*/