summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailedit.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-29 14:01:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commitf820365eed7e956e67e6122a8a5ab529e7df9474 (patch)
tree9ee43bae2f7cafa38ab0cf018b8dbaf49d531f38 /src/gui/windows/mailedit.cpp
parent4b0f30b1e1879cee6d65394d826bba21eca6c40b (diff)
downloadplus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.gz
plus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.bz2
plus-f820365eed7e956e67e6122a8a5ab529e7df9474.tar.xz
plus-f820365eed7e956e67e6122a8a5ab529e7df9474.zip
Fix time in mail view window.
Also fix possible leaks in mail windows.
Diffstat (limited to 'src/gui/windows/mailedit.cpp')
-rw-r--r--src/gui/windows/mailedit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/mailedit.cpp b/src/gui/windows/mailedit.cpp
index ba3972992..5bb669b72 100644
--- a/src/gui/windows/mailedit.cpp
+++ b/src/gui/windows/mailedit.cpp
@@ -40,6 +40,7 @@
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/textfield.h"
+#include "utils/delete2.h"
#include "utils/gettext.h"
#include "utils/stringutils.h"
@@ -106,7 +107,6 @@ MailEdit::MailEdit() :
placer(1, 1, mSubjectField, 3);
placer(0, 2, mMoneyLabel);
placer(1, 2, mMoneyField, 3);
-// placer(0, 3, mItemScrollArea, 3);
placer(0, 3, mItemLabel);
placer(1, 3, mItemScrollArea, 2, 2);
placer(3, 4, mAddButton, 1);
@@ -123,6 +123,7 @@ MailEdit::MailEdit() :
MailEdit::~MailEdit()
{
mailEditWindow = nullptr;
+ delete2(mInventory);
}
void MailEdit::action(const ActionEvent &event)