From 5b8c92a15a877bc05812c091ca1841cacf989f30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 26 Aug 2017 01:15:03 +0300 Subject: Add support for mail deletion. --- src/gui/windows/mailwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/mailwindow.cpp') diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index 8dc54cf94..f41017543 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -151,7 +151,10 @@ void MailWindow::action(const ActionEvent &event) if (sel < 0) return; const MailMessage *const mail = mMessages[sel]; - mailHandler->deleteMessage(mail->id); + if (mUseMail2) + mail2Handler->deleteMail(mOpenType, mail->id); + else + mailHandler->deleteMessage(mail->id); } else if (eventId == "return") { -- cgit v1.2.3-70-g09d2