From a87e09d49a30d4fe1dba49ead1beda42e025c708 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 27 Sep 2021 10:29:13 +0200 Subject: [PATCH] respect auto-expand policy when moving around with select next/previous item shortcuts in feeds list --- src/librssguard/gui/feedsview.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/librssguard/gui/feedsview.cpp b/src/librssguard/gui/feedsview.cpp index 4a1140607..cc506c014 100644 --- a/src/librssguard/gui/feedsview.cpp +++ b/src/librssguard/gui/feedsview.cpp @@ -369,11 +369,6 @@ void FeedsView::openSelectedItemsInNewspaperMode() { void FeedsView::selectNextItem() { QModelIndex index_next = moveCursor(QAbstractItemView::CursorAction::MoveDown, Qt::KeyboardModifier::NoModifier); - while (m_proxyModel->hasChildren(index_next) && !isExpanded(index_next)) { - expand(index_next); - index_next = moveCursor(QAbstractItemView::CursorAction::MoveDown, Qt::KeyboardModifier::NoModifier); - } - if (index_next.isValid()) { setCurrentIndex(index_next); scrollTo(index_next, QAbstractItemView::ScrollHint::EnsureVisible); @@ -385,11 +380,6 @@ void FeedsView::selectNextItem() { void FeedsView::selectPreviousItem() { QModelIndex index_previous = moveCursor(QAbstractItemView::CursorAction::MoveUp, Qt::KeyboardModifier::NoModifier); - while (m_proxyModel->hasChildren(index_previous) && !isExpanded(index_previous)) { - expand(index_previous); - index_previous = moveCursor(QAbstractItemView::CursorAction::MoveUp, Qt::KeyboardModifier::NoModifier); - } - if (index_previous.isValid()) { setCurrentIndex(index_previous); scrollTo(index_previous, QAbstractItemView::ScrollHint::EnsureVisible);