diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-10 17:38:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-10 17:38:06 +0300 |
commit | 6e759ab357232970f408880b7705c3897a7835d5 (patch) | |
tree | fe92deab627128cbec74bdfc49462833f1b22f2d /src/gui/windows/maileditwindow.cpp | |
parent | 69eed0d99caea86486206f8d45705827f7a6fe19 (diff) | |
download | plus-6e759ab357232970f408880b7705c3897a7835d5.tar.gz plus-6e759ab357232970f408880b7705c3897a7835d5.tar.bz2 plus-6e759ab357232970f408880b7705c3897a7835d5.tar.xz plus-6e759ab357232970f408880b7705c3897a7835d5.zip |
Dont send empty mail subject.
Diffstat (limited to 'src/gui/windows/maileditwindow.cpp')
-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") |