summaryrefslogtreecommitdiff
path: root/src
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 /src
parent65d433a88afd4106e86c19eb438efbe1a1925de8 (diff)
downloadmv-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.gz
mv-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.bz2
mv-ddefda720d1ed957da01028e789f99cbd27a8b62.tar.xz
mv-ddefda720d1ed957da01028e789f99cbd27a8b62.zip
Add ability to send new mail.
Diffstat (limited to 'src')
-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());
+ }
}