summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-26 00:03:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-26 00:03:07 +0300
commit4f75520b908b11f48c566c7bf0c10f6be5ab74bf (patch)
treec6239787f7c5e17f450943475ef7e763457407e7 /src/gui/windows
parentd0768817618143739b8fd81cfa9124e8f60e1b12 (diff)
downloadplus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.gz
plus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.bz2
plus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.xz
plus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.zip
Cancel mail writing on server if mail edit window was closed.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/maileditwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp
index b3cfd560b..ec9b32825 100644
--- a/src/gui/windows/maileditwindow.cpp
+++ b/src/gui/windows/maileditwindow.cpp
@@ -136,7 +136,7 @@ void MailEditWindow::action(const ActionEvent &event)
const std::string &eventId = event.getId();
if (eventId == "close")
{
- scheduleDelete();
+ close();
}
else if (eventId == "send")
{
@@ -189,6 +189,8 @@ void MailEditWindow::setMessage(const std::string &str)
void MailEditWindow::close()
{
+ if (mUseMail2)
+ mail2Handler->cancelWriteMail();
scheduleDelete();
}