summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/mailedit.cpp')
-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());
+ }
}