From cf6339994460d9cb58bcf2c4ea55d2299fecd9bf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 20:12:45 +0300 Subject: Use CREATEWIDGET macro in mailviewwindow. --- src/gui/windows/mailviewwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2