Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
d51a165f
Commit
d51a165f
authored
Apr 10, 2021
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/articlelistview.cpp
View file @
d51a165f
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment