From 96a8c23f1e15c7b7dc40935f2c27e93aba58e9e0 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 9 Sep 2020 23:19:36 +0200 Subject: [PATCH] disable post details when no post is selected (prevents posting comments to empty post) --- .../src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp index b397ea493..85e13560f 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp @@ -670,10 +670,12 @@ void GxsChannelPostsWidgetWithModel::showPostDetails() ui->postLogo_LB->hide(); ui->postName_LB->hide(); ui->postTime_LB->hide(); - mChannelPostFilesModel->clear(); + mChannelPostFilesModel->clear(); + ui->details_TW->setEnabled(false); return; } + ui->details_TW->setEnabled(true); ui->postLogo_LB->show(); ui->postName_LB->show(); @@ -1090,6 +1092,7 @@ void GxsChannelPostsWidgetWithModel::insertChannelDetails(const RsGxsChannelGrou #endif ui->subscribeToolButton->setText(tr("Subscribe ") + " " + QString::number(group.mMeta.mPop) ); + showPostDetails(); } #ifdef TODO