added errors check to Comic

This commit is contained in:
Luis Ángel San Martín
2013-12-15 19:57:33 +01:00
parent 91f89b161d
commit ed729385f8
4 changed files with 39 additions and 7 deletions

View File

@ -213,12 +213,14 @@ void Viewer::open(QString pathFile, const ComicDB & comic)
void Viewer::showMessageErrorOpening()
{
QMessageBox::critical(NULL,tr("Not found"),tr("Comic not found"));
QMessageBox::critical(this,tr("Not found"),tr("Comic not found"));
resetContent();
}
void Viewer::showMessageErrorOpening(QString message)
{
QMessageBox::critical(NULL,tr("Error opening"),message);
QMessageBox::critical(this,tr("Error opening comic"),message);
resetContent();
}
void Viewer::next()