From e038f75f39cd0b82d0f98e4a9d5f3f1f2a297ff9 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 28 May 2015 17:45:33 +0000 Subject: [PATCH] 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 --- MessageAggregator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MessageAggregator.cpp b/MessageAggregator.cpp index 2471ec2a5..f4b0b8ec5 100644 --- a/MessageAggregator.cpp +++ b/MessageAggregator.cpp @@ -222,7 +222,7 @@ public: Q_EMIT do_free_text (id_, text, false); }); 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->addWidget (auto_off_button_);