diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:12:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:12:45 +0300 |
commit | cf6339994460d9cb58bcf2c4ea55d2299fecd9bf (patch) | |
tree | a8a3e20f4af2bdb6cc526249cac6d436e32ad600 /src/gui | |
parent | 176f44f8f0a1d56018cefd83b94726be9942b543 (diff) | |
download | plus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.gz plus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.bz2 plus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.tar.xz plus-cf6339994460d9cb58bcf2c4ea55d2299fecd9bf.zip |
Use CREATEWIDGET macro in mailviewwindow.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/mailviewwindow.cpp | 4 |
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); |