mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-09 09:35:32 -04:00
fixed random crash in forum search
This commit is contained in:
parent
1abd206443
commit
b5b490067b
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
|||
mThreadModel = new RsGxsForumModel(this);
|
||||
mThreadProxyModel = new ForumPostSortFilterProxyModel(ui->threadTreeWidget->header(),this);
|
||||
mThreadProxyModel->setSourceModel(mThreadModel);
|
||||
mThreadProxyModel->setDynamicSortFilter(false); // causes crashes when true.
|
||||
mThreadProxyModel->setSortRole(RsGxsForumModel::SortRole);
|
||||
ui->threadTreeWidget->setModel(mThreadProxyModel);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue