fixed post versionning

This commit is contained in:
csoler 2018-11-27 20:43:09 +01:00
parent 23302ea469
commit ed68d720aa
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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<std::pair<time_t,RsGxsMessageId> > post_versions = mThreadModel->getPostVersions(mThreadId);
std::vector<std::pair<time_t,RsGxsMessageId> > 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) ;