summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/mailwindow.cpp')
-rw-r--r--src/gui/windows/mailwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp
index 071a1ecee..87b732bf8 100644
--- a/src/gui/windows/mailwindow.cpp
+++ b/src/gui/windows/mailwindow.cpp
@@ -283,3 +283,12 @@ void MailWindow::postConnection()
{
mailHandler->refresh();
}
+
+void MailWindow::createMail(const std::string &to)
+{
+ if (mailEditWindow)
+ return;
+
+ CREATEWIDGETV0(mailEditWindow, MailEditWindow);
+ mailEditWindow->setTo(to);
+}