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.cpp13
1 files changed, 13 insertions, 0 deletions
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"));
+ }
+ }
+}