summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 20:12:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 20:12:45 +0300
commitcf6339994460d9cb58bcf2c4ea55d2299fecd9bf (patch)
treea8a3e20f4af2bdb6cc526249cac6d436e32ad600 /src/gui/windows
parent176f44f8f0a1d56018cefd83b94726be9942b543 (diff)
downloadmanaplus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.gz
manaplus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.bz2
manaplus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.xz
manaplus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.zip
Use CREATEWIDGET macro in mailviewwindow.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/mailviewwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp
index 5aed6d5e2..544c80f0d 100644
--- a/src/gui/windows/mailviewwindow.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -31,6 +31,7 @@
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/icon.h"
#include "gui/widgets/label.h"
@@ -182,8 +183,7 @@ void MailViewWindow::action(const ActionEvent &event)
return;
if (mailEditWindow)
mailEditWindow->scheduleDelete();
- mailEditWindow = new MailEditWindow;
- mailEditWindow->postInit();
+ CREATEWIDGETV0(mailEditWindow, MailEditWindow);
mailEditWindow->setTo(mMessage->sender);
mailEditWindow->setSubject("Re:" + mMessage->title);
mailEditWindow->setMessage(">" + mMessage->text);