From ade15250530eb0205e538cc1eeb7ccbdb0a77109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 22 Jun 2013 23:04:38 +0200 Subject: [PATCH] se comprueba que los c?mics existan para poder editar la portada --- YACReaderLibrary/properties_dialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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));*/