mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 12:34:37 -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());
|
QQmlProperty(list, "currentIndex").write(index.row());
|
||||||
|
|
||||||
selectionHelper->clear();
|
setCurrentIndex(index.row());
|
||||||
selectionHelper->selectIndex(index.row());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InfoComicsView::setCurrentIndex(int index)
|
void InfoComicsView::setCurrentIndex(int index)
|
||||||
|
Reference in New Issue
Block a user