Fix comment check

This commit is contained in:
defnax 2025-11-15 16:36:48 +01:00
parent ba4b8e7ff5
commit 25b3421b98

View file

@ -72,6 +72,13 @@ void GxsCreateCommentDialog::createComment()
comment.mMeta.mGroupId = mParentId.first; comment.mMeta.mGroupId = mParentId.first;
comment.mMeta.mThreadId = mThreadId; comment.mMeta.mThreadId = mThreadId;
if(text.isEmpty()) {
/* error message */
QMessageBox::warning(this, tr("RetroShare"),tr("Please add a comment"), QMessageBox::Ok, QMessageBox::Ok);
return; //Don't add a empty comment!!
}
std::cerr << "GxsCreateCommentDialog::createComment()"; std::cerr << "GxsCreateCommentDialog::createComment()";
std::cerr << std::endl; std::cerr << std::endl;