mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 17:35:02 -04:00
fixed regression on comics' actions when no comic is selected
This commit is contained in:
@ -2372,11 +2372,11 @@ QModelIndexList LibraryWindow::getSelectedComics()
|
||||
QLOG_INFO() << "selection count " << selection.length();
|
||||
qSort(selection.begin(),selection.end(),lessThanModelIndexRow);
|
||||
|
||||
/*if(selection.count()==0)
|
||||
if(selection.count()==0)
|
||||
{
|
||||
comicsView->selectRow(comicFlow->centerIndex());
|
||||
comicsView->selectIndex(0);
|
||||
selection = comicsView->selectionModel()->selectedRows();
|
||||
}*/
|
||||
}
|
||||
return selection;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user