Fixing get work links click on messages & clear the channel details when no channel selected

This commit is contained in:
defnax 2020-06-17 17:19:12 +02:00
parent b3b87303e2
commit 9e0c247677
2 changed files with 81 additions and 69 deletions

View file

@ -955,10 +955,18 @@ void GxsChannelPostsWidgetWithModel::blank()
ui->postButton->setEnabled(false);
ui->subscribeToolButton->setEnabled(false);
mChannelPostsModel->clear();
groupNameChanged(QString());
ui->channelName_LB->setText(tr("No Channel Selected"));
ui->logoLabel->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/channels.png"));
ui->infoPosts->setText("");
ui->infoLastPost->setText("");
ui->infoAdministrator->setText("");
ui->infoDistribution->setText("");
ui->infoCreated->setText("");
ui->infoDescription->setText("");
mChannelPostsModel->clear();
groupNameChanged(QString());
//ui->infoWidget->hide();
}
bool GxsChannelPostsWidgetWithModel::navigate(const RsGxsMessageId &msgId)