From 3cb6e2cd859f92f102abd5027773496a1f21be5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 25 Apr 2018 22:16:20 +0200 Subject: [PATCH] Check bookmarks nullity and return in Comic before updating the bookmark image. --- common/comic.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/comic.cpp b/common/comic.cpp index dfe9d065..64b00c83 100644 --- a/common/comic.cpp +++ b/common/comic.cpp @@ -176,7 +176,11 @@ void Comic::checkIsBookmark(int index) } //----------------------------------------------------------------------------- void Comic::updateBookmarkImage(int index) -{ +{ + if (bm == nullptr) { + return; + } + if(bm->isBookmark(index)) { QImage p;