mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 04:44:25 -04:00
attempt to fix bug in forum search
This commit is contained in:
parent
25467dda9f
commit
d31f5d1159
1 changed files with 4 additions and 0 deletions
|
@ -53,9 +53,13 @@ RsGxsForumModel::RsGxsForumModel(QObject *parent)
|
||||||
void RsGxsForumModel::preMods()
|
void RsGxsForumModel::preMods()
|
||||||
{
|
{
|
||||||
emit layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
|
|
||||||
|
beginResetModel();
|
||||||
}
|
}
|
||||||
void RsGxsForumModel::postMods()
|
void RsGxsForumModel::postMods()
|
||||||
{
|
{
|
||||||
|
endResetModel();
|
||||||
|
|
||||||
if(mTreeMode == TREE_MODE_FLAT)
|
if(mTreeMode == TREE_MODE_FLAT)
|
||||||
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(mPosts.size(),COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
|
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(mPosts.size(),COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue