mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed random crash in forum search
This commit is contained in:
parent
1abd206443
commit
b5b490067b
@ -257,6 +257,7 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
|||||||
mThreadModel = new RsGxsForumModel(this);
|
mThreadModel = new RsGxsForumModel(this);
|
||||||
mThreadProxyModel = new ForumPostSortFilterProxyModel(ui->threadTreeWidget->header(),this);
|
mThreadProxyModel = new ForumPostSortFilterProxyModel(ui->threadTreeWidget->header(),this);
|
||||||
mThreadProxyModel->setSourceModel(mThreadModel);
|
mThreadProxyModel->setSourceModel(mThreadModel);
|
||||||
|
mThreadProxyModel->setDynamicSortFilter(false); // causes crashes when true.
|
||||||
mThreadProxyModel->setSortRole(RsGxsForumModel::SortRole);
|
mThreadProxyModel->setSortRole(RsGxsForumModel::SortRole);
|
||||||
ui->threadTreeWidget->setModel(mThreadProxyModel);
|
ui->threadTreeWidget->setModel(mThreadProxyModel);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user