mirror of
https://github.com/YACReader/yacreader
synced 2025-11-13 13:32:51 -05:00
Avoid code duplication
This commit is contained in:
@ -149,8 +149,7 @@ void InfoComicsView::setCurrentIndex(const QModelIndex &index)
|
||||
{
|
||||
QQmlProperty(list, "currentIndex").write(index.row());
|
||||
|
||||
selectionHelper->clear();
|
||||
selectionHelper->selectIndex(index.row());
|
||||
setCurrentIndex(index.row());
|
||||
}
|
||||
|
||||
void InfoComicsView::setCurrentIndex(int index)
|
||||
|
||||
Reference in New Issue
Block a user