mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Implement comics metadata deletion
This commit is contained in:
parent
689e31891f
commit
0556276374
@ -2714,6 +2714,16 @@ QModelIndexList LibraryWindow::getSelectedComics()
|
||||
|
||||
void LibraryWindow::deleteMetadataFromSelectedComics()
|
||||
{
|
||||
QModelIndexList indexList = getSelectedComics();
|
||||
QList<ComicDB> comics = comicsModel->getComics(indexList);
|
||||
|
||||
for (auto &comic : comics) {
|
||||
comic.info.deleteMetadata();
|
||||
}
|
||||
|
||||
DBHelper::updateComicsInfo(comics, foldersModel->getDatabase());
|
||||
|
||||
comicsModel->reload();
|
||||
}
|
||||
|
||||
void LibraryWindow::deleteComics()
|
||||
|
Loading…
Reference in New Issue
Block a user