mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -04:00
Check bookmarks nullity and return in Comic before updating the bookmark image.
This commit is contained in:
parent
f3f4e7720a
commit
3cb6e2cd85
@ -177,6 +177,10 @@ 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user