fix symbol counter for requests #141

This commit is contained in:
DenioD
2020-06-16 21:55:33 +02:00
parent 68bfdb6234
commit bf8b0c960a
6 changed files with 70 additions and 5 deletions

View File

@@ -703,6 +703,8 @@ void::MainWindow::addContact()
request.setupUi(&dialog);
Settings::saveRestore(&dialog);
request.memorequest->setLenDisplayLabelChatRequest(request.memoSizeChatRequest);
try
{
@@ -820,7 +822,7 @@ void MainWindow::ContactRequest() {
return;
}
int max = 235;
int max = 512;
QString chattext = contactRequest.getMemo();;
int size = chattext.size();
@@ -829,7 +831,7 @@ void MainWindow::ContactRequest() {
// auto addr = "";
// if (! Settings::isZAddress(AddressBook::addressFromAddressLabel(addr->text()))) {
QMessageBox msg(QMessageBox::Critical, tr("Your Message is too long"),
tr("You can only write messages with 235 character maximum \n") + tr("\n Please reduce your message to 235 character."),
tr("You can only write messages with 512 character maximum \n") + tr("\n Please reduce your message to 235 character."),
QMessageBox::Ok, this);
msg.exec();