mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
clear comments when switching channels
This commit is contained in:
parent
d472053960
commit
0a6e15c524
4 changed files with 13 additions and 9 deletions
|
|
@ -183,7 +183,6 @@ void ChannelPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem &
|
|||
p.drawPixmap(mZoom*QPoint(0.1*fm.height(),-3.4*fm.height()),FilesDefs::getPixmapFromQtResourcePath(STAR_OVERLAY_IMAGE).scaled(mZoom*6*fm.height(),mZoom*6*fm.height(),Qt::KeepAspectRatio,Qt::SmoothTransformation));
|
||||
}
|
||||
|
||||
std::cerr << "mCommentCount=" << post.mCommentCount << std::endl;
|
||||
if(post.mCommentCount)
|
||||
{
|
||||
QPainter p(&pixmap);
|
||||
|
|
@ -856,6 +855,8 @@ void GxsChannelPostsWidgetWithModel::updateGroupData()
|
|||
std::cerr << "Old group: " << mGroup.mMeta.mGroupId << ", new group: " << group.mMeta.mGroupId << ". Celaring selection" << std::endl;
|
||||
#endif
|
||||
whileBlocking(ui->postsTree->selectionModel())->clear();
|
||||
whileBlocking(ui->commentsDialog)->commentClear();
|
||||
updateCommentsCount(0);
|
||||
}
|
||||
|
||||
mGroup = group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue