diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-29 01:36:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:10:28 +0300 |
commit | 4b0f30b1e1879cee6d65394d826bba21eca6c40b (patch) | |
tree | 14d16cadd1b8fe20bc0bfa2ea8974ff46b00b496 /src/gui/windows/mailwindow.cpp | |
parent | 13920702c8a5e5b093d9a3ef5a5e8b254931915b (diff) | |
download | plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.gz plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.bz2 plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.xz plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.zip |
Allos send items by mail.
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r-- | src/gui/windows/mailwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index e9933b307..ef6444405 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -109,7 +109,8 @@ void MailWindow::action(const ActionEvent &event) } else if (eventId == "new") { - new MailEdit(); + if (!mailEditWindow) + mailEditWindow = new MailEdit(); } else if (eventId == "open") { @@ -124,6 +125,7 @@ void MailWindow::action(const ActionEvent &event) void MailWindow::clear() { delete_all(mMessages); + mMessages.clear(); mMailModel->clear(); mListBox->setSelected(-1); } |