From 128663d95bef62632ea5c003db90c3c94dbb28d5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 28 Feb 2018 15:07:15 +0300 Subject: [PATCH] Reply by double clicking a message. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index b628363a1..b7e25c257 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -1352,6 +1352,14 @@ void HistoryInner::mouseDoubleClickEvent(QMouseEvent *e) { _trippleClickTimer.start(QApplication::doubleClickInterval()); } } + if (!ClickHandler::getActive() + && !ClickHandler::getPressed() + && _mouseCursorState == CursorState::None) { + if (const auto item = _mouseActionItem) { + mouseActionCancel(); + _widget->replyToMessage(item); + } + } } void HistoryInner::contextMenuEvent(QContextMenuEvent *e) {