mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added more debug info to comment tree widget
This commit is contained in:
parent
5e62af44e5
commit
0e0430a222
@ -29,6 +29,8 @@
|
||||
#include <QMessageBox>
|
||||
#include <QDateTime>
|
||||
|
||||
//#define DEBUG_COMMENT_DIALOG 1
|
||||
|
||||
/** Constructor */
|
||||
GxsCommentDialog::GxsCommentDialog(QWidget *parent, const RsGxsId &default_author, RsGxsCommentService *comment_service)
|
||||
: QWidget(parent), ui(new Ui::GxsCommentDialog)
|
||||
@ -96,8 +98,9 @@ void GxsCommentDialog::commentClear()
|
||||
void GxsCommentDialog::commentLoad(const RsGxsGroupId &grpId, const std::set<RsGxsMessageId>& msg_versions,const RsGxsMessageId& most_recent_msgId,bool use_cache)
|
||||
{
|
||||
#ifdef DEBUG_COMMENT_DIALOG
|
||||
std::cerr << "GxsCommentDialog::commentLoad(" << grpId << ", most recent msg version: " << most_recent_msgId << ")";
|
||||
std::cerr << std::endl;
|
||||
std::cerr << "GxsCommentDialog::commentLoad(" << grpId << ", most recent msg version: " << most_recent_msgId << ")" << std::endl;
|
||||
for(const auto& mid:msg_versions)
|
||||
std::cerr << " msg version: " << mid << std::endl;
|
||||
#endif
|
||||
|
||||
mGrpId = grpId;
|
||||
|
@ -73,6 +73,7 @@ std::map<RsGxsMessageId, std::vector<RsGxsComment> > GxsCommentTreeWidget::mComm
|
||||
QMutex GxsCommentTreeWidget::mCacheMutex;
|
||||
|
||||
//#define USE_NEW_DELEGATE 1
|
||||
//#define DEBUG_GXSCOMMENT_TREEWIDGET 1
|
||||
|
||||
// This class allows to draw the item using an appropriate size
|
||||
|
||||
@ -508,6 +509,8 @@ void GxsCommentTreeWidget::service_requestComments(const RsGxsGroupId& group_id,
|
||||
/* request comments */
|
||||
#ifdef DEBUG_GXSCOMMENT_TREEWIDGET
|
||||
std::cerr << "GxsCommentTreeWidget::service_requestComments for group " << group_id << std::endl;
|
||||
for(const auto& mid:msgIds)
|
||||
std::cerr << " including message " << mid << std::endl;
|
||||
#endif
|
||||
|
||||
RsThread::async([this,group_id,msgIds]()
|
||||
|
Loading…
Reference in New Issue
Block a user