diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-28 02:22:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:10:28 +0300 |
commit | ddefda720d1ed957da01028e789f99cbd27a8b62 (patch) | |
tree | 757d57d75491b4028cdc471bad35c14dc383bfd8 /src | |
parent | 65d433a88afd4106e86c19eb438efbe1a1925de8 (diff) | |
download | plus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.gz plus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.bz2 plus-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.xz plus-ddefda720d1ed957da01028e789f99cbd27a8b62.zip |
Add ability to send new mail.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/mailedit.cpp | 8 |
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()); + } } |