From 6e759ab357232970f408880b7705c3897a7835d5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 10 Sep 2015 17:38:06 +0300 Subject: Dont send empty mail subject. --- src/gui/windows/maileditwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp index 922d09957..de403839b 100644 --- a/src/gui/windows/maileditwindow.cpp +++ b/src/gui/windows/maileditwindow.cpp @@ -148,8 +148,14 @@ void MailEditWindow::action(const ActionEvent &event) } } + std::string subject = mSubjectField->getText(); + if (subject.empty()) + { + // TRANSLATORS: empty mail message subject + subject.append(_("empty subject")); + } mailHandler->send(mToField->getText(), - mSubjectField->getText(), + subject, mMessageField->getText()); } else if (eventId == "add") -- cgit v1.2.3-70-g09d2