mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-01 04:46:47 -05:00
* Fixing the Post buttons to get disabled when the limit has been exceeded
This commit is contained in:
parent
30956f8de5
commit
11d3583233
7 changed files with 20 additions and 11 deletions
|
|
@ -602,15 +602,15 @@ void RichTextEdit::checkLength(){
|
|||
if(charRemains >= 0) {
|
||||
text = tr("It remains %1 characters after HTML conversion.").arg(charRemains);
|
||||
f_info->setStyleSheet("QLabel#f_info { }");
|
||||
emit textSizeOk(true);
|
||||
}else{
|
||||
text = tr("Warning: This message is too big of %1 characters after HTML conversion.").arg((0-charRemains));
|
||||
f_info->setStyleSheet("QLabel#f_info {color: red; font: bold; }");
|
||||
f_info->setStyleSheet("QLabel#f_info {color: red; font: bold; }");
|
||||
emit textSizeOk(false);
|
||||
}
|
||||
//buttonBox->button(QDialogButtonBox::Ok)->setEnabled(charRemains>=0);
|
||||
f_info->setText(text);
|
||||
}
|
||||
|
||||
|
||||
void RichTextEdit::setPlaceHolderTextPosted() {
|
||||
f_textedit->setPlaceholderText(tr("Text (optional)"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue