mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
disable post details when no post is selected (prevents posting comments to empty post)
This commit is contained in:
parent
4d934993f3
commit
96a8c23f1e
@ -671,9 +671,11 @@ void GxsChannelPostsWidgetWithModel::showPostDetails()
|
|||||||
ui->postName_LB->hide();
|
ui->postName_LB->hide();
|
||||||
ui->postTime_LB->hide();
|
ui->postTime_LB->hide();
|
||||||
mChannelPostFilesModel->clear();
|
mChannelPostFilesModel->clear();
|
||||||
|
ui->details_TW->setEnabled(false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
ui->details_TW->setEnabled(true);
|
||||||
|
|
||||||
ui->postLogo_LB->show();
|
ui->postLogo_LB->show();
|
||||||
ui->postName_LB->show();
|
ui->postName_LB->show();
|
||||||
@ -1090,6 +1092,7 @@ void GxsChannelPostsWidgetWithModel::insertChannelDetails(const RsGxsChannelGrou
|
|||||||
#endif
|
#endif
|
||||||
ui->subscribeToolButton->setText(tr("Subscribe ") + " " + QString::number(group.mMeta.mPop) );
|
ui->subscribeToolButton->setText(tr("Subscribe ") + " " + QString::number(group.mMeta.mPop) );
|
||||||
|
|
||||||
|
showPostDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TODO
|
#ifdef TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user