mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-03 16:54:39 -05:00 
			
		
		
		
	fixed bug in Comic Vine scraper causing a crash when sorting comics on a an empty selection
This commit is contained in:
		@ -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()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user