mirror of
https://github.com/YACReader/yacreader
synced 2025-07-19 05:24:57 -04:00
Check bookmarks nullity and return in Comic before updating the bookmark image.
This commit is contained in:
@ -176,7 +176,11 @@ void Comic::checkIsBookmark(int index)
|
|||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void Comic::updateBookmarkImage(int index)
|
void Comic::updateBookmarkImage(int index)
|
||||||
{
|
{
|
||||||
|
if (bm == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(bm->isBookmark(index))
|
if(bm->isBookmark(index))
|
||||||
{
|
{
|
||||||
QImage p;
|
QImage p;
|
||||||
|
Reference in New Issue
Block a user