diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index 9bc754637..2be5efb35 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -393,7 +393,7 @@ void MessageComposer::updateCells(int,int) { int rowCount = ui.recipientWidget->rowCount(); int row; - bool has_gxs = false ; + has_gxs = false ; for (row = 0; row < rowCount; ++row) { @@ -410,6 +410,7 @@ void MessageComposer::updateCells(int,int) ui.respond_to_CB->show(); ui.distantFrame->show(); ui.fromLabel->show(); + checkLength(); } else { @@ -2880,15 +2881,17 @@ void MessageComposer::checkLength() lineLabel->setText("|"); - if(charRemains >= 0) { - text = tr("It remains %1 characters after HTML conversion.").arg(charRemains); - infoLabel->setStyleSheet("QStatusBar QLabel#infoLabel { }"); - }else{ - text = tr("Warning: This message is too big of %1 characters after HTML conversion.").arg((0-charRemains)); - infoLabel->setStyleSheet("QStatusBar QLabel#infoLabel {color: red; font: bold; }"); + if(has_gxs) { + if(charRemains >= 0) { + text = tr("It remains %1 characters after HTML conversion.").arg(charRemains); + }else{ + text = tr("Warning: This message is too big of %1 characters after HTML conversion.").arg((0-charRemains)); + } + ui.actionSend->setEnabled(charRemains>=0); + infoLabel->setText(text); + } + else { + infoLabel->setText(""); + ui.actionSend->setEnabled(true); } - - //ui.actionSend->setEnabled(charRemains>=0); - - infoLabel->setText(text); } diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.h b/retroshare-gui/src/gui/msgs/MessageComposer.h index e8b947273..a5f6d773c 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.h +++ b/retroshare-gui/src/gui/msgs/MessageComposer.h @@ -263,6 +263,8 @@ private: QLabel *lengthLabel; QLabel *lineLabel; + bool has_gxs; + /** Qt Designer generated object */ Ui::MessageComposer ui; diff --git a/retroshare-gui/src/gui/settings/NotifyPage.ui b/retroshare-gui/src/gui/settings/NotifyPage.ui index 64807a235..8237b8c3a 100755 --- a/retroshare-gui/src/gui/settings/NotifyPage.ui +++ b/retroshare-gui/src/gui/settings/NotifyPage.ui @@ -18,7 +18,7 @@ - Log + Activity