mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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();
|
QList<QModelIndex> selection = tableFiles->selectionModel()->selectedIndexes();
|
||||||
|
|
||||||
if(selection.count() > 0)
|
if(selection.count() > 0)
|
||||||
|
{
|
||||||
localComicsModel->moveSelectionDown(selection);
|
localComicsModel->moveSelectionDown(selection);
|
||||||
|
|
||||||
selection = tableFiles->selectionModel()->selectedIndexes();
|
selection = tableFiles->selectionModel()->selectedIndexes();
|
||||||
tableFiles->scrollTo(selection.last());
|
tableFiles->scrollTo(selection.last());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SortVolumeComics::moveUpIL()
|
void SortVolumeComics::moveUpIL()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user