yacreader/YACReaderLibrary/qml
Igor Kushnir f88af80379 Library: fix InfoComicsView crashes
InfoComicsView constructor is the only function that connects to
FlowView's currentCoverChanged signal. Neither of the slots connected to
this signal handles the argument value index==-1. So when FlowView emits
this signal with index==-1, YACReaderLibrary crashes. Returning early
from either ComicsView::updateInfoForIndex() or
InfoComicsView::setCurrentIndex() when index==-1 is not sufficient - the
crash happens in the other slot then. Let us skip emitting the signal in
FlowView if index==-1 rather than return early from both slots.

Steps to reproduce 1:
1. Launch YACReaderLibrary version that matches the version of the
default library database. Alternatively, select a compatible library
after starting the application.
2. If InfoComicsView is not active, switch to it.
3. (optional) Switch to another comics view out of InfoComicsView.
4. Quit YACReaderLibrary. The application crashes during exit - after
the "YACReaderLibrary closed with exit code : 0" message is printed.

Steps to reproduce 2:
1. Launch a YACReaderLibrary version newer than the version of the
default library database.
2. Click the "No" button in the "Update needed" dialog that pops up.
3. Change between comics views until InfoComicsView becomes active. If
this view was active at the beginning, switch through all the views to
get back to it. At this point YACReaderLibrary crashes.
2021-02-01 11:27:18 +02:00
..
ComicInfoView.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00
FlowView.qml Library: fix InfoComicsView crashes 2021-02-01 11:27:18 +02:00
GridComicsView.qml Fix Potential fix for GridComicsView in Qt 13 2019-08-11 10:15:44 +02:00
info-favorites.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-favorites@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-indicator-light.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-indicator-light@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-indicator.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-rating.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-rating@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-shadow-light.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-shadow-light@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-shadow.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-tag.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-tag@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-tick.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-tick@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
info-top-shadow.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
InfoComicsView.qml Use QQuickWidget instead of QQuickView to avoid displacement bugs on Windows and Linux 2018-08-11 11:26:12 +02:00
InfoFavorites.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00
InfoRating.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00
InfoTick.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00
page-macosx.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
page-macosx@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
page.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
reading.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
star_menu.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
star_menu@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
star-macosx.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
star-macosx@2x.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
star.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
tick.png Headless server: simplify system config logger 2018-01-28 13:32:56 +01:00
YACReaderScrollView.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00
YACReaderScrollViewStyle.qml Normalize line endings for .qml files 2018-08-05 13:14:30 +02:00