summaryrefslogtreecommitdiff
path: root/src/gui/windows/maileditwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-10 17:38:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-10 17:38:06 +0300
commit6e759ab357232970f408880b7705c3897a7835d5 (patch)
treefe92deab627128cbec74bdfc49462833f1b22f2d /src/gui/windows/maileditwindow.cpp
parent69eed0d99caea86486206f8d45705827f7a6fe19 (diff)
downloadmanaplus-6e759ab357232970f408880b7705c3897a7835d5.tar.gz
manaplus-6e759ab357232970f408880b7705c3897a7835d5.tar.bz2
manaplus-6e759ab357232970f408880b7705c3897a7835d5.tar.xz
manaplus-6e759ab357232970f408880b7705c3897a7835d5.zip
Dont send empty mail subject.
Diffstat (limited to 'src/gui/windows/maileditwindow.cpp')
-rw-r--r--src/gui/windows/maileditwindow.cpp8
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")