mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 19:08:35 -04:00
gxsforums: fixed wrong branch for displaying text from banned persons
add default to false for mdisplaybannedtext
This commit is contained in:
parent
6b174ede8e
commit
aad8bf0134
1 changed files with 19 additions and 18 deletions
|
@ -336,6 +336,8 @@ GxsForumThreadWidget::GxsForumThreadWidget(const RsGxsGroupId &forumId, QWidget
|
|||
// load settings
|
||||
processSettings(true);
|
||||
|
||||
mDisplayBannedText = false;
|
||||
|
||||
blankPost();
|
||||
|
||||
ui->subscribeToolButton->setToolTip(tr( "<p>Subscribing to the forum will gather \
|
||||
|
@ -1276,8 +1278,8 @@ void GxsForumThreadWidget::insertMessageData(const RsGxsForumMsg &msg)
|
|||
banned_text_info += "<ul><li><b><font color=\"#e00000\">" + tr( "Messages from this author are not forwarded.") + "</font></b></li></ul>";
|
||||
banned_text_info += "<p><b><font color=\"#e00000\">" + tr( "You can force the visibility and forwarding of messages by setting a different opinion for that Id in People's tab.") + "</font></b></p><hr>";
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
uint32_t flags = RSHTML_FORMATTEXT_EMBED_LINKS;
|
||||
if(Settings->getForumLoadEmoticons())
|
||||
flags |= RSHTML_FORMATTEXT_EMBED_SMILEYS ;
|
||||
|
@ -1294,7 +1296,6 @@ void GxsForumThreadWidget::insertMessageData(const RsGxsForumMsg &msg)
|
|||
, backgroundColor, desiredContrast, desiredMinimumFontSize
|
||||
);
|
||||
ui->postText->setHtml(extraTxt);
|
||||
}
|
||||
|
||||
QStringList urls;
|
||||
RsHtml::findAnchors(ui->postText->toHtml(), urls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue