mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
se comprueba que los c?mics existan para poder editar la portada
This commit is contained in:
parent
0210c3b831
commit
ade1525053
@ -15,6 +15,7 @@
|
||||
#include <QCheckBox>
|
||||
#include <QTabWidget>
|
||||
#include <QIntValidator>
|
||||
#include <QFileInfo>
|
||||
|
||||
PropertiesDialog::PropertiesDialog(QWidget * parent)
|
||||
:QDialog(parent)
|
||||
@ -388,6 +389,13 @@ void PropertiesDialog::setComics(QList<ComicDB> 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));*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user