From 45c701c8e8694acd7cd39d3361395006c7137b7a Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 19 Nov 2023 17:16:48 +0100 Subject: [PATCH] removed debug output --- .../src/gui/feeds/ChannelsCommentsItem.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp index 46c129ebe..5b0e0b264 100644 --- a/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp +++ b/retroshare-gui/src/gui/feeds/ChannelsCommentsItem.cpp @@ -185,16 +185,11 @@ bool ChannelsCommentsItem::setPost(const RsGxsChannelPost& post, bool doFill) if (doFill) fill(); - std::cerr << "end setting post." << std::endl; return true; } bool ChannelsCommentsItem::setMissingPost() { - std::cerr << "setting missing post." << std::endl; - fill(true); - - std::cerr << "end setting missing post." << std::endl; return true; } @@ -287,7 +282,6 @@ void ChannelsCommentsItem::load() return; mLoading= true; - std::cerr << "Loading message " << mPost.mMeta.mMsgId << std::endl; RsThread::async([this]() { @@ -304,8 +298,7 @@ void ChannelsCommentsItem::load() if (groups.size() != 1) { - std::cerr << "GxsGxsChannelGroupItem::loadGroup() Wrong number of Items"; - std::cerr << std::endl; + std::cerr << "GxsGxsChannelGroupItem::loadGroup() Wrong number of Items" << std::endl; return; } RsGxsChannelGroup group(groups[0]); @@ -336,7 +329,6 @@ void ChannelsCommentsItem::load() { RsGxsComment cmt(comments[0]); - std::cerr << "setting comment." << std::endl; uint32_t autorized_lines = (int)floor( (ui->avatarLabel->height() - ui->button_HL->sizeHint().height()) / QFontMetricsF(ui->subjectLabel->font()).height()); @@ -353,19 +345,20 @@ void ChannelsCommentsItem::load() ui->avatarLabel->setPixmap(pixmap); //Change this item to be uploaded with thread element. This is really bad practice. - - mLoading=false; } else + { + mLoading=false; removeItem(); + } if (posts.size() == 1) setPost(posts[0]); else setMissingPost(); - std::cerr << "End loading channel post comment data" << std::endl; emit sizeChanged(this); + mLoading=false; }, this ); });