This commit is contained in:
Martin Rotter 2015-08-24 06:40:03 +02:00
parent a3773914b7
commit 5da26eee69
2 changed files with 9 additions and 3 deletions

View File

@ -23,6 +23,7 @@
Fixed: Fixed:
<ul> <ul>
<li>Categories are now not expanded when selected using "Go to next/previous item" in feeds list. (bug #122)</li>
<ul> <ul>
<hr/> <hr/>

View File

@ -415,7 +415,7 @@ void FeedsView::restoreRecycleBin() {
emit feedsNeedToBeReloaded(true); emit feedsNeedToBeReloaded(true);
} }
void FeedsView::updateCountsOfSelectedFeeds(bool update_total_too) { void FeedsView::updateCountsOfSelectedFeeds(bool update_total_too) {
foreach (Feed *feed, selectedFeeds()) { foreach (Feed *feed, selectedFeeds()) {
feed->updateCounts(update_total_too); feed->updateCounts(update_total_too);
} }
@ -469,9 +469,12 @@ void FeedsView::updateCountsOfParticularFeed(Feed *feed, bool update_total_too)
} }
void FeedsView::selectNextItem() { void FeedsView::selectNextItem() {
// NOTE: Bug #122 requested to not expand in here.
/*
if (!isExpanded(currentIndex())) { if (!isExpanded(currentIndex())) {
expand(currentIndex()); expand(currentIndex());
} }
*/
QModelIndex index_next = moveCursor(QAbstractItemView::MoveDown, Qt::NoModifier); QModelIndex index_next = moveCursor(QAbstractItemView::MoveDown, Qt::NoModifier);
@ -485,11 +488,13 @@ void FeedsView::selectNextItem() {
void FeedsView::selectPreviousItem() { void FeedsView::selectPreviousItem() {
QModelIndex index_previous = moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier); QModelIndex index_previous = moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier);
// NOTE: Bug #122 requested to not expand in here.
/*
if (!isExpanded(index_previous)) { if (!isExpanded(index_previous)) {
expand(index_previous); expand(index_previous);
index_previous = moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier);
} }
*/
index_previous = moveCursor(QAbstractItemView::MoveUp, Qt::NoModifier);
if (index_previous.isValid()) { if (index_previous.isValid()) {
setCurrentIndex(index_previous); setCurrentIndex(index_previous);