summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-28 02:22:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commitddefda720d1ed957da01028e789f99cbd27a8b62 (patch)
tree757d57d75491b4028cdc471bad35c14dc383bfd8
parent65d433a88afd4106e86c19eb438efbe1a1925de8 (diff)
downloadplus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.gz
plus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.bz2
plus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.xz
plus-ddefda720d1ed957da01028e789f99cbd27a8b62.zip
Add ability to send new mail.
-rw-r--r--src/gui/windows/mailedit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/windows/mailedit.cpp b/src/gui/windows/mailedit.cpp
index f78374b87..971a6d146 100644
--- a/src/gui/windows/mailedit.cpp
+++ b/src/gui/windows/mailedit.cpp
@@ -93,5 +93,13 @@ void MailEdit::action(const ActionEvent &event)
{
const std::string &eventId = event.getId();
if (eventId == "close")
+ {
scheduleDelete();
+ }
+ else if (eventId == "send")
+ {
+ mailHandler->send(mToField->getText(),
+ mSubjectField->getText(),
+ mMessageField->getText());
+ }
}