diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-06 17:33:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-06 17:33:09 +0300 |
commit | aa5398300e95ad3075a3aab74b5ddeebf597d671 (patch) | |
tree | b59896b5e59327f924cf23bdb4ac12296fde5ba7 | |
parent | 893df56fe05fb0e865fda77477c37200bbab018b (diff) | |
download | manaverse-aa5398300e95ad3075a3aab74b5ddeebf597d671.tar.gz manaverse-aa5398300e95ad3075a3aab74b5ddeebf597d671.tar.bz2 manaverse-aa5398300e95ad3075a3aab74b5ddeebf597d671.tar.xz manaverse-aa5398300e95ad3075a3aab74b5ddeebf597d671.zip |
Fix closing mail edit window by top right corner.
-rw-r--r-- | src/gui/windows/maileditwindow.cpp | 5 | ||||
-rw-r--r-- | src/gui/windows/maileditwindow.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/maileditwindow.cpp b/src/gui/windows/maileditwindow.cpp index 51495563d..922d09957 100644 --- a/src/gui/windows/maileditwindow.cpp +++ b/src/gui/windows/maileditwindow.cpp @@ -195,3 +195,8 @@ void MailEditWindow::setMessage(const std::string &str) { mMessageField->setText(str); } + +void MailEditWindow::close() +{ + scheduleDelete(); +} diff --git a/src/gui/windows/maileditwindow.h b/src/gui/windows/maileditwindow.h index 997106c9a..de4086266 100644 --- a/src/gui/windows/maileditwindow.h +++ b/src/gui/windows/maileditwindow.h @@ -56,6 +56,8 @@ class MailEditWindow final : public Window, void setMessage(const std::string &str); + void close() override final; + private: Button *mSendButton; Button *mCloseButton; |