fixed bug causing crash when clicking on non channel entries

This commit is contained in:
csoler 2020-06-05 22:47:29 +02:00
parent facad382cf
commit 89fc77ef8e
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -1019,8 +1019,8 @@ void GxsChannelPostsWidget::clearPosts()
void GxsChannelPostsWidgetWithModel::blank() void GxsChannelPostsWidgetWithModel::blank()
{ {
mStateHelper->setWidgetEnabled(ui->postButton, false); ui->postButton->setEnabled(false);
mStateHelper->setWidgetEnabled(ui->subscribeToolButton, false); ui->subscribeToolButton->setEnabled(false);
mChannelPostsModel->clear(); mChannelPostsModel->clear();
groupNameChanged(QString()); groupNameChanged(QString());