mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -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);
|
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…
Add table
Add a link
Reference in a new issue