Don't send empty free text messages

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5446 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-05-28 17:45:33 +00:00
parent a6c8e76808
commit 4884a9aeb2

View File

@ -222,7 +222,7 @@ public:
Q_EMIT do_free_text (id_, text, false); Q_EMIT do_free_text (id_, text, false);
}); });
connect (message_line_edit_, &QLineEdit::editingFinished, [this] () { connect (message_line_edit_, &QLineEdit::editingFinished, [this] () {
Q_EMIT do_free_text (id_, message_line_edit_->text (), true); Q_EMIT do_free_text (id_, message_line_edit_->text (), !message_line_edit_->text ().isEmpty ());
}); });
control_layout->addLayout (form_layout); control_layout->addLayout (form_layout);
control_layout->addWidget (auto_off_button_); control_layout->addWidget (auto_off_button_);