mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
Fix comment check
This commit is contained in:
parent
ba4b8e7ff5
commit
25b3421b98
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue