From e0e1411ab9a9e1a29f5fb917395ba7f1eef14dec Mon Sep 17 00:00:00 2001 From: Phenom Date: Tue, 5 May 2020 09:36:44 +0200 Subject: [PATCH] Fix PR#1907 by setting bool in the place that other. --- retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp index e099be278..3dc5504cc 100644 --- a/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp +++ b/retroshare-gui/src/gui/feeds/GxsChannelPostItem.cpp @@ -62,9 +62,9 @@ GxsChannelPostItem::GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, v.push_back(messageId); setMessageVersions(v) ; - setup(); - mLoaded = false; - // no call to loadGroup() here because we have it already. + setup(); + + // no call to loadGroup() here because we have it already. } GxsChannelPostItem::GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId& groupId, const RsGxsMessageId &messageId, bool isHome, bool autoUpdate,const std::set& older_versions) : @@ -82,9 +82,9 @@ GxsChannelPostItem::GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, v.push_back(messageId); setMessageVersions(v) ; - setup(); - mLoaded = false; - loadGroup(); + setup(); + + loadGroup(); } // GxsChannelPostItem::GxsChannelPostItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsChannelPost& post, bool isHome, bool autoUpdate,const std::set& older_versions) : @@ -173,6 +173,7 @@ void GxsChannelPostItem::setup() mInFill = false; mCloseOnRead = false; + mLoaded = false; /* clear ui */ ui->titleLabel->setText(tr("Loading..."));