mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 18:42:20 -04:00
Rolled back commit 7720 and fixed forum search by content issue introduced in revision 7716.
Fixed load/save of filter type in settings. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7722 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f511786a6a
commit
6d32524837
4 changed files with 9 additions and 22 deletions
|
@ -45,7 +45,6 @@ GxsForumsFillThread::GxsForumsFillThread(GxsForumThreadWidget *parent)
|
|||
mFillComplete = false;
|
||||
|
||||
mFilterColumn = 0;
|
||||
mFilterString = QString();
|
||||
|
||||
mViewType = 0;
|
||||
mFlatView = false;
|
||||
|
@ -177,7 +176,7 @@ void GxsForumsFillThread::run()
|
|||
std::cerr << "GxsForumsFillThread::run() Adding TopLevel Thread: mId: " << msg.mMeta.mMsgId << std::endl;
|
||||
#endif
|
||||
|
||||
QTreeWidgetItem *item = mParent->convertMsgToThreadWidget(msg, mUseChildTS, mFilterColumn, mFilterString);
|
||||
QTreeWidgetItem *item = mParent->convertMsgToThreadWidget(msg, mUseChildTS, mFilterColumn);
|
||||
if (!mFlatView) {
|
||||
threadList.push_back(QPair<std::string, QTreeWidgetItem*>(msg.mMeta.mMsgId.toStdString(), item));
|
||||
}
|
||||
|
@ -219,16 +218,9 @@ void GxsForumsFillThread::run()
|
|||
std::cerr << "GxsForumsFillThread::run() adding " << msg.mMeta.mMsgId << std::endl;
|
||||
#endif
|
||||
|
||||
QTreeWidgetItem *item = mParent->convertMsgToThreadWidget(msg, mUseChildTS, mFilterColumn, mFilterString);
|
||||
QTreeWidgetItem *item = mParent->convertMsgToThreadWidget(msg, mUseChildTS, mFilterColumn);
|
||||
threadPair.second->addChild(item);
|
||||
|
||||
if ( !item->isHidden() && threadPair.second->isHidden() ){
|
||||
threadPair.second->setHidden(false);
|
||||
for (QTreeWidgetItem *cursIt = threadPair.second->parent(); cursIt; cursIt = cursIt->parent()){
|
||||
cursIt->setHidden(false);
|
||||
}
|
||||
}
|
||||
|
||||
calculateExpand(msg, item);
|
||||
|
||||
/* add item to process list */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue