From ed68d720aa3724637e0656ed2b59d3a6d071ed71 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 27 Nov 2018 20:43:09 +0100 Subject: [PATCH] fixed post versionning --- retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp index a5c5c4ce7..9d8fa6824 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumThreadWidget.cpp @@ -968,6 +968,7 @@ void GxsForumThreadWidget::clickedThread(QModelIndex index) return; mThreadId = tmp; + mOrigThreadId = tmp; std::cerr << "Clicked on message ID " << mThreadId << std::endl; @@ -1910,7 +1911,7 @@ void GxsForumThreadWidget::insertMessage() // add/show combobox for versions, if applicable, and enable it. If no older versions of the post available, hide the combobox. - std::vector > post_versions = mThreadModel->getPostVersions(mThreadId); + std::vector > post_versions = mThreadModel->getPostVersions(mOrigThreadId); std::cerr << "Looking into existing versions for post " << mThreadId << ", thread history: " << post_versions.size() << std::endl; ui->versions_CB->blockSignals(true) ;