Make "delete" icon work properly in the "Reading" list

Only the "Favorites" special list was handled.
This commit is contained in:
Luis Ángel San Martín
2021-05-16 09:01:35 +02:00
parent e799513fb4
commit 13a29e2657
7 changed files with 61 additions and 2 deletions

View File

@ -2591,8 +2591,7 @@ void LibraryWindow::deleteComicsFromList()
qulonglong id = mi.data(ReadingListModel::IDRole).toULongLong();
switch (typeList) {
case ReadingListModel::SpecialList:
//by now only 'favorites'
comicsModel->deleteComicsFromFavorites(indexList);
comicsModel->deleteComicsFromSpecialList(indexList, id);
break;
case ReadingListModel::Label:
comicsModel->deleteComicsFromLabel(indexList, id);