mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 09:11:28 -05:00
Merge pull request #1858 from csoler/v0.6-ImprovedGUI_4
attempt to fix bug in forum search
This commit is contained in:
commit
b03ddda6c3
@ -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…
x
Reference in New Issue
Block a user