From b928fbdc877e2d1ccf3dc5689f0d0a4dc7021d0b Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 29 Apr 2016 07:32:07 +0200 Subject: [PATCH] Possible fix to #181. --- src/gui/feedsview.cpp | 2 +- src/services/abstract/rootitem.h | 2 +- src/services/abstract/serviceroot.cpp | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/feedsview.cpp b/src/gui/feedsview.cpp index cae86b30c..10e71fe48 100755 --- a/src/gui/feedsview.cpp +++ b/src/gui/feedsview.cpp @@ -520,7 +520,7 @@ void FeedsView::onItemExpandRequested(const QList &items, bool exp) { QModelIndex source_index = m_sourceModel->indexForItem(item); QModelIndex proxy_index = m_proxyModel->mapFromSource(source_index); - setExpanded(proxy_index, !exp); + //setExpanded(proxy_index, !exp); setExpanded(proxy_index, exp); } } diff --git a/src/services/abstract/rootitem.h b/src/services/abstract/rootitem.h index 713d0f488..93e222215 100755 --- a/src/services/abstract/rootitem.h +++ b/src/services/abstract/rootitem.h @@ -261,7 +261,7 @@ class RootItem : public QObject { RootItemKind::Kind m_kind; int m_id; - int m_customId; + int m_customId; QString m_title; QString m_description; QIcon m_icon; diff --git a/src/services/abstract/serviceroot.cpp b/src/services/abstract/serviceroot.cpp index 8db0e85b8..af65fcb09 100755 --- a/src/services/abstract/serviceroot.cpp +++ b/src/services/abstract/serviceroot.cpp @@ -255,7 +255,9 @@ void ServiceRoot::syncIn() { } } - items_to_expand.append(this); + if (!items_to_expand.contains(this)) { + items_to_expand.prepend(this); + } requestItemExpand(items_to_expand, true); }