From ddefda720d1ed957da01028e789f99cbd27a8b62 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Apr 2015 02:22:44 +0300 Subject: Add ability to send new mail. --- src/gui/windows/mailedit.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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()); + } } -- cgit v1.2.3-70-g09d2