fixed a few bugs in posts model

This commit is contained in:
csoler 2020-06-06 21:32:06 +02:00
parent 129ffdd6c5
commit fecd4369ec
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
2 changed files with 32 additions and 38 deletions

View file

@ -488,6 +488,9 @@ void GxsChannelPostsWidgetWithModel::showPostDetails()
mChannelPostFilesModel->clear();
return;
}
if(index.row()==0 && index.column()==0)
std::cerr << "here" << std::endl;
RsGxsChannelPost post = index.data(Qt::UserRole).value<RsGxsChannelPost>() ;
mChannelPostFilesModel->setFiles(post.mFiles);