mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-15 00:28:58 -05:00
Fix comment check
This commit is contained in:
parent
ba4b8e7ff5
commit
25b3421b98
1 changed files with 7 additions and 0 deletions
|
|
@ -71,6 +71,13 @@ void GxsCreateCommentDialog::createComment()
|
|||
comment.mMeta.mParentId = mParentId.second;
|
||||
comment.mMeta.mGroupId = mParentId.first;
|
||||
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 << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue