mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-13 01:39:29 -04:00
Merge pull request #1462 from csoler/v0.6-ImprovedGUI
fixed not working setAsReadOnActivate preferences/forum button
This commit is contained in:
commit
d143f761cf
1 changed files with 5 additions and 2 deletions
|
@ -996,7 +996,10 @@ void GxsForumThreadWidget::changedThread(QModelIndex index)
|
||||||
#ifdef DEBUG_FORUMS
|
#ifdef DEBUG_FORUMS
|
||||||
std::cerr << "Setting message read status to true" << std::endl;
|
std::cerr << "Setting message read status to true" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
mThreadModel->setMsgReadStatus(src_index, true,false);
|
bool setToReadOnActive = Settings->getForumMsgSetToReadOnActivate();
|
||||||
|
|
||||||
|
if(setToReadOnActive)
|
||||||
|
mThreadModel->setMsgReadStatus(src_index, true,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxsForumThreadWidget::clickedThread(QModelIndex index)
|
void GxsForumThreadWidget::clickedThread(QModelIndex index)
|
||||||
|
@ -1302,10 +1305,10 @@ void GxsForumThreadWidget::insertMessageData(const RsGxsForumMsg &msg)
|
||||||
uint32_t overall_reputation = rsReputations->overallReputationLevel(msg.mMeta.mAuthorId) ;
|
uint32_t overall_reputation = rsReputations->overallReputationLevel(msg.mMeta.mAuthorId) ;
|
||||||
bool redacted = (overall_reputation == RsReputations::REPUTATION_LOCALLY_NEGATIVE) ;
|
bool redacted = (overall_reputation == RsReputations::REPUTATION_LOCALLY_NEGATIVE) ;
|
||||||
|
|
||||||
|
#ifdef TO_REMOVE
|
||||||
bool setToReadOnActive = Settings->getForumMsgSetToReadOnActivate();
|
bool setToReadOnActive = Settings->getForumMsgSetToReadOnActivate();
|
||||||
uint32_t status = msg.mMeta.mMsgStatus ;//item->data(RsGxsForumModel::COLUMN_THREAD_DATA, ROLE_THREAD_STATUS).toUInt();
|
uint32_t status = msg.mMeta.mMsgStatus ;//item->data(RsGxsForumModel::COLUMN_THREAD_DATA, ROLE_THREAD_STATUS).toUInt();
|
||||||
|
|
||||||
#ifdef TO_REMOVE
|
|
||||||
QModelIndex index = getCurrentIndex();
|
QModelIndex index = getCurrentIndex();
|
||||||
if (IS_MSG_NEW(status)) {
|
if (IS_MSG_NEW(status)) {
|
||||||
if (setToReadOnActive) {
|
if (setToReadOnActive) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue