From 7404124bf2578b713f613a749b283e8a1ed1faa3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Apr 2015 17:03:08 +0300 Subject: Add support for open mail message by double click. --- src/gui/windows/mailwindow.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gui/windows/mailwindow.cpp') diff --git a/src/gui/windows/mailwindow.cpp b/src/gui/windows/mailwindow.cpp index b23984c4c..e01bab225 100644 --- a/src/gui/windows/mailwindow.cpp +++ b/src/gui/windows/mailwindow.cpp @@ -263,3 +263,16 @@ void MailWindow::viewPrev(const int id) } } } + +void MailWindow::mouseClicked(MouseEvent &event) +{ + if (event.getButton() == MouseButton::LEFT) + { + event.consume(); + if (event.getClickCount() == 2 && + event.getSource() == mListBox) + { + action(ActionEvent(mListBox, "open")); + } + } +} -- cgit v1.2.3-60-g2f50