mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
fixed bug in Comic Vine scraper causing a crash when sorting comics on a an empty selection
This commit is contained in:
parent
e59efed322
commit
c3dbcae586
@ -169,10 +169,12 @@ void SortVolumeComics::moveDownCL()
|
||||
QList<QModelIndex> selection = tableFiles->selectionModel()->selectedIndexes();
|
||||
|
||||
if(selection.count() > 0)
|
||||
{
|
||||
localComicsModel->moveSelectionDown(selection);
|
||||
|
||||
selection = tableFiles->selectionModel()->selectedIndexes();
|
||||
tableFiles->scrollTo(selection.last());
|
||||
selection = tableFiles->selectionModel()->selectedIndexes();
|
||||
tableFiles->scrollTo(selection.last());
|
||||
}
|
||||
}
|
||||
|
||||
void SortVolumeComics::moveUpIL()
|
||||
|
Loading…
x
Reference in New Issue
Block a user