mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Merge pull request #2724 from csoler/v0.6-BugFixing_29
fixed keeping new zoom size when resizing the channel post window
This commit is contained in:
commit
782944727c
@ -282,16 +282,12 @@ void BasePostedItem::readToggled(bool checked)
|
||||
if (mInFill) {
|
||||
return;
|
||||
}
|
||||
setReadStatus(false, checked);
|
||||
|
||||
RsThread::async([this,checked]()
|
||||
{
|
||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||
rsPosted->setPostReadStatus(msgPair, !checked);
|
||||
|
||||
RsQThreadUtils::postToObject( [checked,this]()
|
||||
{
|
||||
setReadStatus(false, checked);
|
||||
}, this );
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -504,6 +504,11 @@ GxsChannelPostsWidgetWithModel::GxsChannelPostsWidgetWithModel(const RsGxsGroupI
|
||||
}, mEventHandlerId, RsEventType::GXS_CHANNELS );
|
||||
}
|
||||
|
||||
void GxsChannelPostsWidgetWithModel::resizeEvent(QResizeEvent *e)
|
||||
{
|
||||
GxsMessageFrameWidget::resizeEvent(e);
|
||||
updateZoomFactor(0);
|
||||
}
|
||||
void GxsChannelPostsWidgetWithModel::currentTabChanged(int t)
|
||||
{
|
||||
switch(t)
|
||||
|
@ -138,6 +138,7 @@ protected:
|
||||
|
||||
/* GxsMessageFrameWidget */
|
||||
virtual void setAllMessagesReadDo(bool read) override;
|
||||
virtual void resizeEvent(QResizeEvent *e) override;
|
||||
|
||||
private slots:
|
||||
void showPostDetails();
|
||||
|
Loading…
Reference in New Issue
Block a user