mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04: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