diff options
-rw-r--r-- | src/gui/windows/maileditwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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") |