summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
commit76dc498cd50fb5bc83b3d0a165df17781af35979 (patch)
tree6513853d484fa36e282afc2865e8e98f69100aeb /src/gui/windows/mailwindow.cpp
parentba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff)
downloadplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.zip
Call postInit after each window creation.
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r--src/gui/windows/mailwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index 18d0626d1..e1edbb74b 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -120,7 +120,10 @@ void MailWindow::action(const ActionEvent &event)
else if (eventId == "new")
{
if (!mailEditWindow)
+ {
mailEditWindow = new MailEditWindow;
+ mailEditWindow->postInit();
+ }
}
else if (eventId == "open")
{
@@ -213,6 +216,7 @@ void MailWindow::showMessage(MailMessage *const mail)
}
delete mailViewWindow;
mailViewWindow = new MailViewWindow(mail);
+ mailViewWindow->postInit();
}
void MailWindow::viewNext(const int id)