mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Fix out of bounds crash
This commit is contained in:
parent
bc6b51ecf5
commit
54a0610a06
@ -459,10 +459,14 @@ void PropertiesDialog::setComics(QList<ComicDB> comics)
|
|||||||
if(!comic.info.date.isNull())
|
if(!comic.info.date.isNull())
|
||||||
{
|
{
|
||||||
QStringList date = (comic.info.date.toString()).split("/");
|
QStringList date = (comic.info.date.toString()).split("/");
|
||||||
dayEdit->setText(date[0]);
|
|
||||||
monthEdit->setText(date[1]);
|
if (date.length() == 3) {
|
||||||
yearEdit->setText(date[2]);
|
dayEdit->setText(date[0]);
|
||||||
|
monthEdit->setText(date[1]);
|
||||||
|
yearEdit->setText(date[2]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!comic.info.publisher.isNull())
|
if(!comic.info.publisher.isNull())
|
||||||
publisherEdit->setText(comic.info.publisher.toString());
|
publisherEdit->setText(comic.info.publisher.toString());
|
||||||
if(!comic.info.format.isNull())
|
if(!comic.info.format.isNull())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user