summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-29 01:36:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commit4b0f30b1e1879cee6d65394d826bba21eca6c40b (patch)
tree14d16cadd1b8fe20bc0bfa2ea8974ff46b00b496 /src/gui/windows/mailwindow.cpp
parent13920702c8a5e5b093d9a3ef5a5e8b254931915b (diff)
downloadplus-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.cpp4
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);
}