mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
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:
parent
92cf54980c
commit
c1810b9e54
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user