Commit d51a165f authored by Antonio Rojas's avatar Antonio Rojas
Browse files

Fix empty article list after qtbase commit 4796296ed6d7b05e2ba94e5a8a28c48350a3c492

Set visible columns before setting the source model
parent 86253998
Pipeline #57449 passed with stage
in 8 minutes and 13 seconds
......@@ -126,9 +126,9 @@ void ArticleListView::setArticleModel(ArticleModel *model)
}
m_proxy = new SortColorizeProxyModel(model);
m_proxy->setSourceModel(model);
m_proxy->setSortRole(ArticleModel::SortRole);
m_proxy->setFilters(m_matchers);
m_proxy->setSourceModel(model);
auto const proxy2 = new FilterDeletedProxyModel(model);
proxy2->setSortRole(ArticleModel::SortRole);
proxy2->setSourceModel(m_proxy);
......@@ -137,11 +137,11 @@ void ArticleListView::setArticleModel(ArticleModel *model)
auto const columnsProxy = new FilterColumnsProxyModel(model);
columnsProxy->setSortRole(ArticleModel::SortRole);
columnsProxy->setSourceModel(proxy2);
columnsProxy->setColumnEnabled(ArticleModel::ItemTitleColumn);
columnsProxy->setColumnEnabled(ArticleModel::FeedTitleColumn);
columnsProxy->setColumnEnabled(ArticleModel::DateColumn);
columnsProxy->setColumnEnabled(ArticleModel::AuthorColumn);
columnsProxy->setSourceModel(proxy2);
setModel(columnsProxy);
header()->setContextMenuPolicy(Qt::CustomContextMenu);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment