From ab927d791bc02f3e0eced51a5e7e8738c893807f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 19 Jan 2022 18:30:38 +0100 Subject: [PATCH] Avoid code duplication --- YACReaderLibrary/info_comics_view.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/YACReaderLibrary/info_comics_view.cpp b/YACReaderLibrary/info_comics_view.cpp index 708aebd0..8f5de93b 100644 --- a/YACReaderLibrary/info_comics_view.cpp +++ b/YACReaderLibrary/info_comics_view.cpp @@ -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)