[Bug 247473] Akregator adds articles to the bottom of the list instead of the top

H.H. cyberbeat at gmx.de
Sun Jan 8 11:53:18 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=247473





--- Comment #33 from H.H. <cyberbeat gmx de>  2012-01-08 11:53:17 ---
after hours of try&error I have a patch working (which does not trigger the
other mentioned bug)


diff --git a/akregator/src/articlelistview.cpp
b/akregator/src/articlelistview.cpp
index bf2219d..4df3427 100644
--- a/akregator/src/articlelistview.cpp
+++ b/akregator/src/articlelistview.cpp
@@ -162,6 +162,8 @@ void ArticleListView::setArticleModel( ArticleModel* model
)
     proxy2->setSortRole( ArticleModel::SortRole );
     proxy2->setSourceModel( m_proxy );

+    connect(model, SIGNAL(rowsInserted(const QModelIndex&, int, int)),
m_proxy, SLOT(invalidate()));
+
     FilterColumnsProxyModel* const columnsProxy = new FilterColumnsProxyModel(
model );
     columnsProxy->setSortRole( ArticleModel::SortRole );
     columnsProxy->setSourceModel( proxy2 );

Could please someone apply that patch?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list