diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-26 00:03:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-26 00:03:07 +0300 |
commit | 4f75520b908b11f48c566c7bf0c10f6be5ab74bf (patch) | |
tree | c6239787f7c5e17f450943475ef7e763457407e7 /src/gui | |
parent | d0768817618143739b8fd81cfa9124e8f60e1b12 (diff) | |
download | manaplus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.gz manaplus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.bz2 manaplus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.tar.xz manaplus-4f75520b908b11f48c566c7bf0c10f6be5ab74bf.zip |
Cancel mail writing on server if mail edit window was closed.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/maileditwindow.cpp | 4 |
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(); } |