mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 14:20:44 -04:00
fixed crash in setting posted items as read
This commit is contained in:
parent
2f2495455f
commit
082603917c
1 changed files with 1 additions and 5 deletions
|
@ -282,16 +282,12 @@ void BasePostedItem::readToggled(bool checked)
|
||||||
if (mInFill) {
|
if (mInFill) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
setReadStatus(false, checked);
|
||||||
|
|
||||||
RsThread::async([this,checked]()
|
RsThread::async([this,checked]()
|
||||||
{
|
{
|
||||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||||
rsPosted->setPostReadStatus(msgPair, !checked);
|
rsPosted->setPostReadStatus(msgPair, !checked);
|
||||||
|
|
||||||
RsQThreadUtils::postToObject( [checked,this]()
|
|
||||||
{
|
|
||||||
setReadStatus(false, checked);
|
|
||||||
}, this );
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue