summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-07 01:13:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-07 01:13:22 +0300
commit086356622db7b0734be68c58e064544fa243be1b (patch)
tree1688cd334f620dadfff25f3430f496908c4b528f /src/gui
parent615445b73ce4378a9d62e64d9f90cefdb26979c7 (diff)
downloadmv-086356622db7b0734be68c58e064544fa243be1b.tar.gz
mv-086356622db7b0734be68c58e064544fa243be1b.tar.bz2
mv-086356622db7b0734be68c58e064544fa243be1b.tar.xz
mv-086356622db7b0734be68c58e064544fa243be1b.zip
Add /mailto chat command.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/mailwindow.cpp9
-rw-r--r--src/gui/windows/mailwindow.h2
2 files changed, 11 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);
+}
diff --git a/src/gui/windows/mailwindow.h b/src/gui/windows/mailwindow.h
index 6500542c9..1a78c1de9 100644
--- a/src/gui/windows/mailwindow.h
+++ b/src/gui/windows/mailwindow.h
@@ -67,6 +67,8 @@ class MailWindow final : public Window,
void postConnection();
+ void createMail(const std::string &to);
+
private:
std::vector<MailMessage*> mMessages;
std::map<int, MailMessage*> mMessagesMap;