Library: do not needlessly retrieve all comics from the DB

The siblings variable is unused. So the ComicModel::getAllComics() call
is redundant unless there is some unobvious side effect (I hope not).
This commit is contained in:
Igor Kushnir 2019-05-24 14:43:40 +03:00
parent 92cf54980c
commit c1810b9e54

View File

@ -1798,8 +1798,6 @@ void LibraryWindow::checkEmptyFolder()
void LibraryWindow::openComic(const ComicDB &comic)
{
if(!importedCovers) {
QList<ComicDB> siblings = comicsModel->getAllComics();
//TODO generate IDS for libraries...
quint64 libraryId = libraries.getId(selectedLibrary->currentText());
bool yacreaderFound = false;