attempt to fix bug in forum search

This commit is contained in:
csoler 2020-04-15 11:31:26 +02:00
parent 25467dda9f
commit d31f5d1159
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -53,9 +53,13 @@ RsGxsForumModel::RsGxsForumModel(QObject *parent)
void RsGxsForumModel::preMods()
{
emit layoutAboutToBeChanged();
beginResetModel();
}
void RsGxsForumModel::postMods()
{
endResetModel();
if(mTreeMode == TREE_MODE_FLAT)
emit dataChanged(createIndex(0,0,(void*)NULL), createIndex(mPosts.size(),COLUMN_THREAD_NB_COLUMNS-1,(void*)NULL));
else