remove channel/posted/forum info when no group is selected

This commit is contained in:
csoler 2018-06-25 23:08:10 +02:00
parent 08b436e5f4
commit a5d1a154a4
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
9 changed files with 63 additions and 13 deletions

View file

@ -596,6 +596,20 @@ void GxsChannelPostsWidget::clearPosts()
ui->fileWidget->clear();
}
void GxsChannelPostsWidget::blank()
{
mStateHelper->setWidgetEnabled(ui->postButton, false);
mStateHelper->setWidgetEnabled(ui->subscribeToolButton, false);
clearPosts();
groupNameChanged(QString());
ui->infoWidget->hide();
ui->feedWidget->show();
ui->fileWidget->hide();
}
bool GxsChannelPostsWidget::navigatePostItem(const RsGxsMessageId &msgId)
{
FeedItem *feedItem = ui->feedWidget->findGxsFeedItem(groupId(), msgId);